Recently there was a necessity to install a Virtual CD/DVD on many computers on the same network. And it was necessary, that CD/DVD would be set to the special letter in system. Right now existed a lot of programs which emulate CD/DVD and can mount any CDs/DVD images but as I wished to make all installation and configuration remoutly (well laziness to me to run from a computer to a computer) that was necessity, that the program could setup in silent mode. After small searches has stopped on program ?agicDisc.I've selected this program for several reasons: 1. The program is free-of-charge (but not all options work in the free-of-charge version, but what is necessary to me, works) 2. There is opportunity to run setup in silent mode. 3. It is possible to operate all necessary functions from a command line. For full happiness, and is more true for management of the program from a command line one more file, Miso.exe is required. The given file can be taken on a site manufacturer ?agicDisc. For installation I have written a script, INSTALL-V-CD.bat. INSTALL-V-CD.bat is very simple and contains just one line: For start of the given script on remote system I use psexec.exe which can be taken here. After installation ?agicDisc, it is necessary to copy miso.exe to remoute computer. I wish to pay attention, that miso.exe should be located in a directory which is registered in PATH. Well and now the most interesting. We create virtual CD and assign to it letter which approaches to us. For this purpose I have written one more script, MOUNT-ISO.bat. MOUNT-ISO.bat contains: @ECHO off miso NULL -sdrv 0 miso NULL -sdrv 1 For /F "tokens=4 delims=(,) " %%a in ('miso NULL -vlist^|find "[1]"') 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 In my case, i assign to virtual CD the letter "S". To mount an ISO file, it is necessary to execute a following command:
miso NULL -mnt S: "ISO-IMG.ISO" The End! :) |
|