Can't seem to kill Windows's "is not a known command, blah, blah" error

The only thing that stops it is WindowsError, but I can not use it,
because it continues the patch creation process.