Page 1 of 1

Who created that file !

Posted: 21 May 2011 15:51
by Ed Dyreen
I was playing with some macro commands . As you can see I forgot some escapes here und there .
You would expect this to crash but no it creates a file named FindStr.EXE of 0kbs in the active directory instead . But why? :?

Code: Select all

if defined StdOut ( %\n2%^

     echo.^^^!StdIn^^^! |^>nul FindStr.EXE /i /c:"^!StdOut^!" &&( %\n2%^

          set /a Error = 0 %\n2%^

     ) ||set /a Error = 1 %\n2%^

) else set /a Error = 1 %\n2%^


Are you sure you wan't to execute Findstr.EXE ? What the heck :shock:

Where can I buy the book, Bill's secrets about DOS :mrgreen: