Who created that file !

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Who created that file !

#1 Post by Ed Dyreen » 21 May 2011 15:51

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:

Post Reply