Link to home
Start Free TrialLog in
Avatar of druppelje
druppelje

asked on

How to create virtual drive, mount (ISO) image via commandline

I want to mount an ISO-file by using a batchfile. In the batchfile a virtual drive is created, the ISO-file mounts, and the program using the ISO-file starts after that. When I quit the program, the ISO-file must be unmounted and the virtual drive must be thrown away. Anyone knows how to do this??
ASKER CERTIFIED SOLUTION
Avatar of rindi
rindi
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Fortunately for the OP, XP tools allow command line usage as well.  

http://www.daemon-tools.cc/dtcc/showthread.php?t=100 demonstrates the syntax and usage for mounting an ISO using Daemon Tools v4; v4.03 was what I found when I went googling.  

Just follow the syntax in that link and that will do exactly what you need.  If you have any other questions just ask.  Getting that to work in a batch file is trivial.
daemon-tools isn't native XP, it is a 3rd party app. Actually I think it is included in alcohol (one of my links above), or at least it is similar. At least also that alcohol version can be command-lined. But as I said, it isn't XP...
But you also said you thought it couldn't be put into a batch file.  It certainly can.  
That's correct, I didn't bother looking closer.. :(
btw, you can use the above link within a batch file then use the mountvol command line to mount and unmount volumes..