• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4600
  • Last Modified:

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??
0
druppelje
Asked:
druppelje
  • 3
  • 2
  • 2
1 Solution
 
rindiCommented:
This is XP, not linux! XP doesn't even know anything about iso files, nor does it know about how to mount such images. So it isn't possible to do this with XP, not even inside the GUI without any batch file!

You might be able to get something similar working by getting 3rd party software, but again I doubt you can get that working via a batch file!

Checkout the following sites for software that can mount iso files:

http://roxio.com/en/index.jhtml;jsessionid=3B0PWRWWTSBT4CQAMYWR3KQ?_requestid=837116
http://www.slysoft.com/en/
http://www.alcohol-soft.com/
0
 
dcliveCommented:
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.
0
 
rindiCommented:
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...
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
dcliveCommented:
But you also said you thought it couldn't be put into a batch file.  It certainly can.  
0
 
rindiCommented:
That's correct, I didn't bother looking closer.. :(
0
 
Mohammed HamadaSenior IT ConsultantCommented:
0
 
Mohammed HamadaSenior IT ConsultantCommented:
btw, you can use the above link within a batch file then use the mountvol command line to mount and unmount volumes..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now