First post, by challo
Hey guys,
i got something curious happening here with my DOSBox, i can't explain myself. I've got a larger batch file, which initiate some values, starts the DOSBox for evaluation and in the end handle the output files generated inside DOSBox. For simplicity i will not post exactly this script, but i wrote some kind of substitutional script, which do more or less the same. Here it comes.
@echo off
:: Relative path to DOSBox folder
set dosboxpath="..\..\DOSBox-0.74"
:: Loop 25 times
for /l %%a in (1,1,25) do (
path %dosboxpath%
:: Starting DOSBox.exe, initiating the user specific config file with an file link DB.lnk
:: Echoing "hello world" to the file "log"
:: Closing DOSBox and return to parent batch file
DB.lnk -c "echo hello world > %cd%\log" -c "exit"
:: create a folder with the name of the current run from 1...25
mkdir %cd%\%%a
:: Move the log file, created by DOSBox, inside the new folder
move %cd%\log %cd%\%%a
)
:: EOF
In fact, not a difficult task. Open DOSBox, create a file, create a subfolder, move file into subfolder, repeat.
Everything works fine, until, i switch off the monitor! No, really! If i'm switching off the monitor after starting the batch, all the files and folders up to the "switch off moment" were created perfectly. But than, nothing seems to happen after it. In my cmd-console a failure occures, which tell me, that no file could be found. This means, DOSBox didn't started properly.
I don't get it, what's the relation between my monitor switching button and the proper execution of my DOSBox?!? This phenomena is so curious to me...
Best regard