Reply 20 of 22, by peterferrie
[quote="peterferrie"]
A colon is not a valid drive letter, so the rest of the line, which is treated as filename and parameters, will fail to execute.
However, for DOS prior to v7, it still attempts to *execute* that line (result: "Invalid drive specification" and "Bad command or filename"). Later versions of DOS know that it can't run, so they skip the line silently.
[/quote]
[img]http://i.imgur.com/WSwjD.png[/img][/quote]
Yes yes, now try it without the space, directly from the command line.
You'll see the messages that are merely being suppressed while running from inside the batch file.