Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backing up to CD R or R/W
Message
 
 
To
14/06/2002 17:50:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00668796
Message ID:
00668914
Views:
19
>>I routinely back up to RW CD's. All of the usual error traping is in place. However, Is there a way to find out if the cd in the drive is, in fact, RW and not R ? I use "direct CD" and the CD drive appears as a normal drive ie E: Any Ideas ? Thanks in advance.
>
>What about writing, then trying to erase, a small file? Should that not give you an "access denied" error with a CD-R that you wouldn't get with a CD-RW?

Stumbled on the answer. If diskspace()for given drive=-1 and drivetype()=5, it is not RW, therefore must be R. I also tried to setvolumelabel() with "Focus" library and returned "F", that works too.

Thanks for everyone's input
Ronl
Previous
Reply
Map
View

Click here to load this message in the networking platform