I have a strange problem that I have never seen before for 30 years working with batch files. Given a dummy CMD file, for example:
@echo off
:somelabel
echo Testing something
dir /b
echo All is well.
:end
This basically works as expected, but sometimes I get output like 'ing something' is not recognized as an internal or external command, operable program or batch file.
This is clearly an event when he chopped off a little line and tried to execute the rest. When this happens, it is always the "random" part of the "random" line; it is not always an X string, or a loss of Y characters, or occurring where I have a particular combination of characters. It also does not affect only expressions echo; it can also try to execute abelor ir /b.
My system is a completely upgraded Win2008 R2, running on VirtualBox 5.0.2, running on a completely updated Linux Mint, running on Lenovo ThinkPad. Scripts are encoded by UTF-8.
... what's happening? How can i avoid this?
source
share