On Sun, 12 Mar 2017 20:00:22 +0100, Petr Laznovsky wrote:
> Just discovered strange thing, inserting following comment line in the long batch:
>
> REM echo %%~b| findstr /I "%%~A"
>
> cause cmd.exe crash on batch start.
This is impossible to reproduce without actual working code. i.e. the whole
batch file with all files involved.
> Following test batch run normally:
>
> @echo off
> REM echo %%~b| findstr /I "%%~A"
> echo test
That's an entirely different condition, so it won't crash. You'll need all
of the variables in order to reproduce the crash. It's impossible to know
what went wrong without the crash.