Which will not work for Win32 filenames, as a file named c\:\\autoexec\.bat does not exist.
Also, the quoting rule of double quotes (") is different for cmd.exe too - "" gets converted to ", """ gets converted to "" and so on. I think. In any case, quotemeta is not what you want when quoting strings for cmd.exe or command.com.
In reply to Re^3: how to open a file with space in its name
by Corion
in thread how to open a file with space in its name
by arunmep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |