LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can you determine if you have a writeable CD

How can you programmatically determine if you have a writeable CD in LabVIEW 7.0.

0 Kudos
Message 1 of 4
(2,859 Views)
Hello,
 
That question boils down to "How do you programmatically determine if a CD is writeable?"  This is not going to be a LabVIEW specific (or any other programming language for that matter I think) task.  You will likely be looking for a windows dll call which returns that information for a given drive (in which case you would use the Call Library Function Node in LabVIEW) or a registry key which holds that information (in which case you can use the registry VIs).
 
I hope this helps!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 4
(2,843 Views)

I am not sure but I don't think even Windows (assuming you're on Windows) knows if the CD you just inserted is writable or not UNTIL you attempt to write something to it.  So, one crude method would be to attempt a write. 

Regards,

-Khalid

0 Kudos
Message 3 of 4
(2,825 Views)

hi there

try this: choose any file on the CD, open it with the "Open file" function, set the "Open mode" to "Write only". if you get an error code, the file is write protected (don't know if this works with files on CDs, but i'm quite sure). you don't have to actually write any bytes to the file.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 4
(2,819 Views)