From: "Kroeger Simon (ext)" Date: 2005-09-08T20:52:01+09:00 Subject: Re: Problem with popen on windows Hmm, this has no effect on the backqoutes thingie. It has an effect on popen but whatever I put in COMSPEC it just stops working. C:\WINNT\system32\cmd.exe is the standard, i tried: C:\WINNT\system32\command.com C:\WINNT\system32\cmd.exe /MIN and empty all have the same effect: no window poping up (fine) but no process is executed also (not so fine) why is cmd.exe started anyway? cheers Simon > From: Robert Klemme [mailto:bob.news@gmx.net] > > Kroeger Simon (ext) wrote: > > Hi all, > > > > i'm using ruby 1.8.2 (2004-12-25) [i386-mswin32] on win2000. > > > > When starting my GUI app with rubyw (because i don't like the empty > > window) there is another window poping up whenever i call popen. (or > > use backquotes to start another process) > > > > Using just ruby.exe all seems fine (except the initial nasty empty > > window) > > > > Someone knows a way around? > > Untested: maybe you can change COMSPEC env var in your ruby script to > point to another binary that won't open a window before > executing the new > process. Another option might be to add a command line param > to COMSPEC - > although I don't know whether that would work. > > Kind regards > > robert > > >