There are number of existing programs that can emulate CD/DVDs and mount CD/DVD images, but since I wanted to install
and configure them remotely I conducted a few more searches and stopped when I found MagicDisc.
I chose MagicDisc primarily for these three reasons:
- It is freeware (note not all options work in the free-of-charge version, but what is necessary to me, works).
- You can run setup in silent mode.
- It is possible to operate all necessary functions from a command line.
To install MagicDisc on my remote system I created a one line INSTALL-V-CD.bat:
To run this script on a remote system use psexec.exe. After MagicDisc has been installed, you'll need to copy the Mount ISO.exe to your remote computer. That way, you can manage the program from a command line. The miso.exe should be located in a directory that's registered in PATH.
If you want to create a virtual CD and assign to it system letter, use the following MOUNT-ISO.bat script:
miso NULL -sdrv 0
miso NULL -sdrv 1
For /F "tokens=4 delims=(,) " %%a in ('miso NULL -vlist^|find ""') do Set VCD=%%a
@ECHO select volume %VCD% > %TEMP%ChangeCDDrive.txt @ECHO assign letter=S >> %TEMP%ChangeCDDrive.txt @ECHO exit >> %TEMP%ChangeCDDrive.txt
Diskpart /S %TEMP%ChangeCDDrive.txt
Del %TEMP%ChangeCDDrive.txt /Q
And finally, to mount an ISO file, you'll need to execute the following command:
miso NULL -mnt S: "ISO-IMG.ISO"
Rating this tip below will let us know how useful it was to you. And if you have a Windows tip, timesaver or workaround to share, submit it to our tip contest. You could win a $150 gift certificate.