Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CD/DVD Drive Letter

1 REPLY 1
Reply
Message 1 of 2
Iain.johnson
174 Views, 1 Reply

CD/DVD Drive Letter

I work on different PCs and offices with lots of information on CDs, I would like to create an menu to access this information.
To do this i need to work out a LSP that will detect the CD/DVD drive letter of the computer.
Can anyone help me with this? Edited by: bigdaftie on Dec 21, 2009 4:40 PM
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Iain.johnson


On 12/21/2009 11:41 AM, bigdaftie wrote:

I work on different PCs and offices with lots of information on CDs, I would like to create an menu to access this information.
To do this i need to work out a LSP that will detect the CD/DVD drive letter of the computer.
Can anyone help me with this?

Edited by: bigdaftie on Dec 21, 2009 4:40 PM


.



DOSLib, free from www.mcneel.com, includes (dos_drives) to list the
drives on the system, and (dos_drivetype) to identify the type of each.



dos_drives

Command: (dos_drives)

("A:" "C:" "D:" "E:" "F:")


Command: (dos_drivetype "F:")

"CDROM"


It should be easy to loop through the list until you hit the first
CDROM drive on each system (although it might not be the only one).

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost