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
Where can I buy the book, Bill's secrets about DOS