PDA

View Full Version : command line option to display or set drive letters



Lee
07.03.2003, 19:17
To aid scripting can you add a command option that will return what device [0-4] is mapped to what drive letter.

example

c:\>daemon -show 0
G:

An option that puts the drive letter is an environment variable at mount time would be just as good.

example
c:\>daemon -mount 0, file.iso -env
c:\>set
dtools_dev0=G:

Jaime
08.03.2003, 14:27
BTEWin supports all that you ask and much more. For this particular case you should use the %@DAEMONLETTER[device] variable function; for example

messagebox %@DAEMONLETTER[0]

will show the drive letter corresponding to device 0.

Download it from my homepage and read the docs to learn how to use it.