Stuff I've Learned About Windows
-
Use "call" to call a batch file from inside another batch file, or the
called batch file will not return control to the calling batch file
upon completion!
So imagine this is test-1.bat:
echo "This is test-1.bat"
test-2.bat
echo "Back in test-1.bat"
And this is test-2.bat:
echo "This is test-2.bat"
Executing test-1.bat will produce the following output:
This is test-1.bat
This is test-2.bat
To ensure that control returns to test-1.bat after test-2.bat is done,
rewrite test-1.bat as follows:
echo "This is test-1.bat"
call test-2.bat
echo "Back in test-1.bat"
-
Windows has a limit on the length of the path - 256 characters. While
this might sound like enough (to the MS folks at least), it is not if
you have a deep hierarchy of intuitively named directories. It took me
a couple of days of frustrating research to figure out that I'm
getting inaccurate results not because of bugs in my program but
because of OS limitations!