I use exerb to generate exe file,but it doesnt work

T

Toto Toto

my program is just

puts "hello world"



I use exerb to generate exe file,
"exerb a.rb"
it generate a exe file: a.exe
when i enter it
nothing happen
I just see a cmd windows flash
why?


my
exerb is 4.2
ruby 1.8.5
windows XP
 
M

Mohit Sindhwani

Toto said:
my program is just

puts "hello world"



I use exerb to generate exe file,
"exerb a.rb"
it generate a exe file: a.exe
when i enter it
nothing happen
I just see a cmd windows flash
why?


my
exerb is 4.2
ruby 1.8.5
windows XP

I haven't used exerb but I think you may need to run a.exe from the
command line. It sounds like you're double clicking on it in Windows.

If I understand it correctly, you click on the file name, it opens a
command window, prints "hello world" and exits the program, therefore
closing the command window after that.

Cheers
Mohit.
 
T

Tom Cloyd

Mohit said:
I haven't used exerb but I think you may need to run a.exe from the
command line. It sounds like you're double clicking on it in Windows.

If I understand it correctly, you click on the file name, it opens a
command window, prints "hello world" and exits the program, therefore
closing the command window after that.

Cheers
Mohit.
Yes - and if this is happening, simply open a command window first, then
launch your exe file from the command line - "ruby {name}.exe". The
command window should remain open upon program termination.

t.

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< (e-mail address removed) >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
T

Toto Toto

Mohit said:
I haven't used exerb but I think you may need to run a.exe from the
command line. It sounds like you're double clicking on it in Windows.

If I understand it correctly, you click on the file name, it opens a
command window, prints "hello world" and exits the program, therefore
closing the command window after that.

Cheers
Mohit.




It works.

Thank you very much.

^-^
 

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
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top