Not a problem
OK ... so the problem is that the virtual disk will not work if the IDE drive is enabled... so lets just script it so we can disable it...
First, we download a nice tool from microsoft called devcon
This is a command line tool for the device manager.
Next we create two scripts:
disabledvd.vbs
'*****************************************
'Edit the following line to point to the location of devcon on your system
devcon = "c:\devcon.exe"
Dim oWshShell
set oWshShell = CreateObject("wscript.Shell")
oWshShell.Run devcon & " disable *DVD*",0,true
'******************************************
enabledvd.vbs
'*****************************************
'Edit the following line to point to the location of devcon on your system
devcon = "c:\devcon.exe"
Dim oWshShell
set oWshShell = CreateObject("wscript.Shell")
oWshShell.Run devcon & " enable *DVD*",0,true
'******************************************
Once you have those two scripts on saved on your computer your ready to create your daemonscript.
1. Mount BF2142 image
2. RunApp - disabledvd.vbs
3. RunApp BF2142
4. WaitForApp - BF2142 to terminate
5. RunApp - enabledvd.vbs
6. UnMount
so far this method has worked for both BF2142 and Civ4.
Ackeron
OK ... so the problem is that the virtual disk will not work if the IDE drive is enabled... so lets just script it so we can disable it...
First, we download a nice tool from microsoft called devcon
This is a command line tool for the device manager.
Next we create two scripts:
disabledvd.vbs
'*****************************************
'Edit the following line to point to the location of devcon on your system
devcon = "c:\devcon.exe"
Dim oWshShell
set oWshShell = CreateObject("wscript.Shell")
oWshShell.Run devcon & " disable *DVD*",0,true
'******************************************
enabledvd.vbs
'*****************************************
'Edit the following line to point to the location of devcon on your system
devcon = "c:\devcon.exe"
Dim oWshShell
set oWshShell = CreateObject("wscript.Shell")
oWshShell.Run devcon & " enable *DVD*",0,true
'******************************************
Once you have those two scripts on saved on your computer your ready to create your daemonscript.
1. Mount BF2142 image
2. RunApp - disabledvd.vbs
3. RunApp BF2142
4. WaitForApp - BF2142 to terminate
5. RunApp - enabledvd.vbs
6. UnMount
so far this method has worked for both BF2142 and Civ4.
Ackeron
Comment