in reply to Re^2: how to open a file with space in its name
in thread how to open a file with space in its name

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.

Replies are listed 'Best First'.
Re^4: how to open a file with space in its name
by suaveant (Parson) on Jan 05, 2006 at 16:44 UTC
    Too true... I have written Perl on Windows all of about twice, so I tend to be biased towards Unix-style programming, my bad.

                    - Ant
                    - Some of my best work - (1 2 3)