Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Easy way to determine if a drive is RW
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 31st May 05:42
geir klemetsen
External User
 
Posts: 1
Default 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.
  Reply With Quote


  sponsored links


2 31st May 05:42
geir klemetsen
External User
 
Posts: 1
Default 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.
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666