First post, by pac00zilla
I am having problems to mount the iso image via .bat dosbox, in windows 7 I created a .bat that mounted the iso of any game and already typed the commands to execute any game via daemon tools, but in windows 10 it is only possible to install the From version 5.0 onwards to the daemon to which the script:
"C: \ Program Files (x86) \ DAEMON Tools Lite \ DTLite.exe" -mount dt, 0,
Does not work, there is a way around this problem.
In case the game was Elder Scrolls II - The Daggerfall (1996)
And this is the complete code I use:
@echo off
c:
if not exist "0.3cd" (
md 0.3cd
)
cd 0.3cd
if not exist "edagger" (
md edagger
xcopy "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger" "C:\0.2cd\edagger" /y /s /e
)
"C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe" -mount dt, 0, "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\edagger\edagger.iso"
del C:\Users\pac\AppData\Local\DOSBox\dosbox-0.74.conf
copy "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\edagger.conf" "C:\Users\pac\AppData\Local\DOSBox"
ren "C:\Users\pac\AppData\Local\DOSBox\edagger.conf" dosbox-0.74.conf
start X:\miscelaneo\2_software_a\emulator.pack_EEC" "2016-08\Emulators\IBM" "PC\DOSBox\DOSBox\DOSBox.exe -s -t 6
:loop
:: esse ping é para 2 segundos (-n 4), para 3s use (-n 5), o valor deve ser considerado com + 2 segundos
ping 127.0.0.1 -n 4 -w 1000
tasklist -fi "IMAGENAME eq DOSBox.exe" | find /i "DOSBox.exe"
if %errorlevel% == 0 goto loop
del C:\Users\pac\AppData\Local\DOSBox\dosbox-0.74.conf
copy "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.1normal.conf" "C:\Users\pac\AppData\Local\DOSBox"
ren "C:\Users\pac\AppData\Local\DOSBox\0.1normal.conf" dosbox-0.74.conf
"C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe" -unmount dt, 0
del X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE0 /y
xcopy "C:\0.2cd\edagger\SAVE0" "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE0" /y /s /e
del X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE1 /y
xcopy "C:\0.2cd\edagger\SAVE1" "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE1" /y /s /e
del X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE2 /y
xcopy "C:\0.2cd\edagger\SAVE2" "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE2" /y /s /e
del X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE3 /y
xcopy "C:\0.2cd\edagger\SAVE3" "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE3" /y /s /e
del X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE4 /y
xcopy "C:\0.2cd\edagger\SAVE4" "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE4" /y /s /e
del X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE5 /y
xcopy "C:\0.2cd\edagger\SAVE5" "X:\miscelaneo\5_fullgame\0.01msdos\rsdos\0.2cd\edagger\SAVE5" /y /s /e
exit