From: Joel Pearson Date: 2012-07-21T16:16:55+09:00 Subject: Re: odd "system" command behaviour with CUI and GUI Joel Pearson wrote in post #1069559: > This workaround seems to work in principle. Not sure how I'm going to be > able to add it with OCRA... > > Script1 (rbw) > require 'win32/process' > Process.create :app_name => "ruby.exe testy2.rb" > > Script2 (rb) > system 'cmd /c "attrib +h aaa.txt"' > > 1 calls 2 as a different proc and different interpreter. No idea if > that'll work in a packaged exe though. Aha, replace Script2 with a bat file written by Script1, and that approach works without needing ruby.exe -- Posted via http://www.ruby-forum.com/.