[Israel.pm] how do I specify a pathname with spaces on win32

Madani, Srikanth, VF-DE Srikanth.Madani at vodafone.com
Mon Sep 27 05:20:57 PDT 2004


Uri Itscowits wrote:
>I fail to run a cmd using system:
>system("c:\some spaced cmdname") 
>the result is "c:\some" not found !

Well, I think it's just a command line requirement in DOS.
I tried
	C:\>d:\srik.bat
and that worked fine.

However, when I inserted a space after the "d:\", and tried
	C:\>d:\ srik.bat
reported
	The name specified is not recognized as an
	internal or external command, operable program or batch file.

Both strings were executed on the "cmd.exe" on WinNT.

Cheers,
Srikanth Madani

Modern UNIXes have no sense of humour.  I tried typing ``nawk nawk'' and it just sat there.




More information about the Perl mailing list