Easy way to determine if a drive is RW
What is the most easy way to do this. I'm about to make an vbs script that
may need to create a file to a disk.
I don't want to use "on error resume next" to find out if the drive where
the file will be created, is read only or not. That is, try to write an dumy
file in that directory, and see if I get an error.
My temporarly idea is to get the fso.drive object and use the
fso.drive.DriveType to check wheter the drice is a CD or fixed disc. Problem
is that it may be necesary to write that file on a network drive (unknown
device, etc..), and then i don't know if it's possible to write that file or
not.
As far I can see, neither of the two last aproaches is an easy way to
implement the test.
|