HOWTO use system call on windows with a space in the path

2002-12-11 Thread Ken Lehman
I would like to write a perl script for windows that in the right situation
fires off another program, the problem is I can't get it to work using
system or exec calls. The file is in the program files directory I tried 
system(c:\program files\etc...) and some variations but I can't get it to
work
Help is appreciated
Thanks in advance.
-Ken



The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HOWTO use system call on windows with a space in the path

2002-12-11 Thread Jenda Krynicky
From: Ken Lehman [EMAIL PROTECTED]

 I would like to write a perl script for windows that in the right
 situation fires off another program, the problem is I can't get it to
 work using system or exec calls. The file is in the program files
 directory I tried system(c:\program files\etc...) and some
 variations but I can't get it to work Help is appreciated Thanks in
 advance. -Ken

(Program SPACE Files was one of the most stupid microsoft inventions)

system( \c:\\program files\\etc\\some.exe\ ... )
or
system( q{c:\program files\etc\some.exe\ ...} )
or
system( qq{c:\\program files\\etc\\some.exe ...} )

Read up about q and qq in 
perldoc perlop

Jenda
= [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]