Thursday, November 8, 2007

A CMD.exe tidbit worth indexing

If you've done SETLOCAL ENABLEDELAYEDEXPANSION in your batchfile
then subsequent ECHOes of exclamation marks!!!! and even parts of
environment variables that contain exclamation marks
(including FOR loop vars) will fail to be emitted, '!' is used as a
runtime-delimiter (instead of evaluation-time's %) for environment
variables when DelayedExpansion is turned ON.