# Rubyscript2exe and "extra" scripts

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-and-extra-scripts/150991>\
**Category:** Ruby\
**Created:** [October 15, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-and-extra-scripts/150991 "2008-10-15T16:58:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glen\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/34f0e0/32.png) [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Post date:** [October 15, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-and-extra-scripts/150991/1 "2008-10-15T16:58:07Z")

</div>

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

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)
