NDog
2009-04-12 03:42:54 UTC
I was wondering why I kept getting strange behavior when I exited
scripts, and I found it has to do with, whether autoexec.bat launches
your script, or whether you manually launch it. For example
autoexec.bat
......
c:\4dos\kstack.com
call c:\test.btm
test.btm
@echo off
setlocal
cls
echo This is a test
echos If you reference this in autoexec.bat the prompt appears here
endlocal
quit
When you reboot into dos (im using dos 7.10), the above will cause the
output to look like
This is a test
If you reference this in autoexec.bat the prompt appears hereC:\>
however if you run test.btm from the command line, it will look like
this
This is a test
If you reference this in autoexec.bat the prompt appears here
C:\>
You can see the autoexec.bat launched script, exits with the prompt
appearing and the same line, and the manually launched script exits
with the prompt beneath the line. I know this is a minor issue, but is
there someway I could make this behavior stop, or at least always get
consistent results, or is this just a case of DOS 7.10 being a bad
version?
Thanks
scripts, and I found it has to do with, whether autoexec.bat launches
your script, or whether you manually launch it. For example
autoexec.bat
......
c:\4dos\kstack.com
call c:\test.btm
test.btm
@echo off
setlocal
cls
echo This is a test
echos If you reference this in autoexec.bat the prompt appears here
endlocal
quit
When you reboot into dos (im using dos 7.10), the above will cause the
output to look like
This is a test
If you reference this in autoexec.bat the prompt appears hereC:\>
however if you run test.btm from the command line, it will look like
this
This is a test
If you reference this in autoexec.bat the prompt appears here
C:\>
You can see the autoexec.bat launched script, exits with the prompt
appearing and the same line, and the manually launched script exits
with the prompt beneath the line. I know this is a minor issue, but is
there someway I could make this behavior stop, or at least always get
consistent results, or is this just a case of DOS 7.10 being a bad
version?
Thanks