"system" and Windows

Also, remember that if you’re using the Cygwin based Ruby, you’ll need
to use ‘/cygdrive/c/program files/app/cmd.exe’ as your command path.

Mat.

···

On Fri, 2002-05-31 at 12:49, 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