Carriage Rule:
The carriage slips away from the next character, so that the character loses all special effects.
If the next character is a line drop, it will take the next character (even if it is also a translation string).
With this simple rule, you can explain things like
echo
#3 creates a file called "Cat Dog" because the space has been shielded and no longer works as a delimiter.
But itβs still possible to break this rule!
You just need to redirect just before the carriage, it still leaves a line (multi-line work continues), but the next character is no longer escaped.
echo
So you can also use this to create your multi-line command
call openfiles.cmd < nul ^ "C:\dir with spaces\file with spaces.txt" < nul ^ "C:\another dir with spaces\another file with spaces.txt"
Or using a macro
set "\n=< nul ^" call openfiles.cmd %\n% "C:\dir with spaces\file with spaces.txt" %\n% "C:\another dir with spaces\another file with spaces.txt"
source share