"system" and Windows


(MENON Jean-Francois) #1

sorry, but neither of these two commands work :-<

···

nobu.nokada@softhome.net wrote:

Hi,

At Fri, 31 May 2002 22:12:51 +0900, > MENON Jean-Francois wrote:

for example:
system (’“c:\Program Files\App\cmd.exe”’,“file”)
doesn’t work.

You need quotes for only single argument. Just:

system (‘c:\Program Files\App\cmd.exe’,“file”)

or

system (’“c:\Program Files\App\cmd.exe” file’)

will work.


Nobu Nakada


/ do you play Go? \

http://jeanfrancois.menon.free.fr/rubygo |
\ /


    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            >>----w |
            >>     >>

(Nobuyoshi Nakada) #2

Hi,

···

At Sun, 2 Jun 2002 05:14:49 +0900, MENON Jean-Francois wrote:

for example:
system (’“c:\Program Files\App\cmd.exe”’,“file”)
doesn’t work.

You need quotes for only single argument. Just:

system (‘c:\Program Files\App\cmd.exe’,“file”)

or

system (’“c:\Program Files\App\cmd.exe” file’)

will work.

sorry, but neither of these two commands work :-<

It works only in 1.7 unless backported, sorry.


Nobu Nakada