Rubyscript2exe and "extra" scripts

G

Glen Holcomb

[Note: parts of this message were removed to make it a legal post.]

I have a script that has been "compiled" using rubyscript2exe and that
script executes another script at various times. However the second script
isn't part of the main program as it needs to run independently. I can't
get the second script to run.

This is what I am trying:

ruby_path = RUBYSCRIPT2EXE.appdir.gsub(/app[\/|\\]/, "bin/ruby.exe")
sd_script = "#{ruby_path} #{TEMP_DIR}shutdown.rb " +
Thread.current["today_by_time"]
system "start #{sd_script}"

Instead of running the shutdown script I get an explorer window. I was
hoping to do this without having to turn the shutdown.rb script into a
separate exe as they are kind of large.

-Glen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top