aspose file tools*
The moose likes General Computing and the fly likes Accessing Cd-Drive without knowing drive letter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Accessing Cd-Drive without knowing drive letter" Watch "Accessing Cd-Drive without knowing drive letter" New topic
Author

Accessing Cd-Drive without knowing drive letter

Danish Shaukat
Ranch Hand

Joined: Nov 16, 1999
Posts: 340
Hi !
How can I access Cd-Drive from Dos-prompt without knowing the drive letter. I am creating an installer. J2SDK is to be installled from cd-drive. But since installer will run on different computers so I can't specify any drive letter.
Thanks in advance,
Danish
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
There's an API in Windows to get all drives with their class (harddisk, CD, floppy, etc.).
I don't have a Win32 API reference here so I can't give you the exact function to use (it was a few years ago that I used it, and that from Delphi) so you'll have to do some searching around in your language documentation but it IS possible.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing Cd-Drive without knowing drive letter