Batch file Top tips

echo | set /p=.

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
  • tech-notes/scripts/top-tips.txt
  • Last modified: 2019/03/05 14:12
  • by gerardorourke