So, I got pissed about how batch files close on resolution in XP (does it do it on Vista too). Finally, I was bothered to modify build.bat to log all the builds for troubleshooting at a later date. Since it has a bit of finicky code, it's worth the guide.
First, add this after all the comments (REM) that recompress all the data:
That bit parses the time and date and logs it in a file called "output.txt". Rename it as you like.
This code is specific to your build tools, so here's the general form, place it after the date and time snippet and before your build command lines:
Finally add "PAUSE" to the end of your batch if you wish to see the output before closing. If all is successful, you should get the contents of the build in "output.txt". The batch is also up for download here if you're using ASM68K.
First, add this after all the comments (REM) that recompress all the data:
CODE
REM Troubleshooting log
REM Stores date and output
@FOR /F "tokens=*" %%A IN ('DATE/T') DO FOR %%B IN (%%A) DO SET Today=%%B
@FOR /F %%A IN ('TIME/T') DO SET Now=%%A
ECHO ====================================================== >>output.txt
ECHO Built on %Today% at %Now% >> output.txt
REM Stores date and output
@FOR /F "tokens=*" %%A IN ('DATE/T') DO FOR %%B IN (%%A) DO SET Today=%%B
@FOR /F %%A IN ('TIME/T') DO SET Now=%%A
ECHO ====================================================== >>output.txt
ECHO Built on %Today% at %Now% >> output.txt
That bit parses the time and date and logs it in a file called "output.txt". Rename it as you like.
This code is specific to your build tools, so here's the general form, place it after the date and time snippet and before your build command lines:
CODE
REM !!!COPY YOUR COMMAND FOR BUILDING INTO THIS LINE AND REMOVE "REM"!!! >> output.txt
rompad.exe s1built.bin 255 0 >>output.txt
fixheadr.exe s1built.bin >>output.txt
rompad.exe s1built.bin 255 0 >>output.txt
fixheadr.exe s1built.bin >>output.txt
Finally add "PAUSE" to the end of your batch if you wish to see the output before closing. If all is successful, you should get the contents of the build in "output.txt". The batch is also up for download here if you're using ASM68K.


00