Tag: batch

Call vs Start

http://stackoverflow.com/questions/13257571/call-command-vs-start-with-wait-option For exe files, I suppose the differences are nearly unimportant. But to start an exe you don’t even need CALL. When starting another batch it’s a big difference, as…

Delayed Expansion

http://stackoverflow.com/questions/14347038/dos-batch-why-are-my-set-commands-resulting-in-nothing-getting-stored You found the bbb (batch beginner bug), but not the variable is empty, it’s the expansion that doesn’t work as expected. Percent expansion is done when a line or…

ErrorLevel

IF ERRORLEVEL is a special syntax supported since the DOS days, the %ERRORLEVEL% variable support was added in WinNT. The original syntax is used like this: call someapp.exe if errorlevel…