Tom's HardwareTom's IT Pro
How can I check whether a directory is writable or not in batch scripting?
Try writing a dummy file to the directory. If it suceeds (check if the file exists) then you know the directory is writeable and you delete the dummy file.