Table of Contents

Batch file Top tips

echo without a new line - e.g. use "." to show progress in a loop

echo | set /p=.

ENABLEDELAYEDEXPANSION

Use in FOR loops to get variable as it is set there (rather than a parse time) - need to use !var! rather than %var% Google it! But any scripts with a ! get messed up!

SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL DisableDelayedExpansion