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

Offer Kaye offer.kaye at gmail.com
Mon Sep 27 05:46:52 PDT 2004


On Mon, 27 Sep 2004 14:01:34 +0200, Uri Itscowits <pm-il at itzko.hopto.org> wrote:
> Hi all,
> 
> I fail to run a cmd using system:
> system("c:\some spaced cmdname")
> 
> the result is "c:\some" not found !
> 
> In case it wasn't clear, I am doing it on MS-windows ( to my surprise too).
> 
> help pls ...
> 

If Yuval's suggestion of using single quotes around the whole thing
doesn't work (I think it should but can't test it myself), try
escaping the whitespace with a backslash instead:

   system("c:\some\ spaced\ cmdname")

Regards,
-- 
Offer Kaye



More information about the Perl mailing list