Winapp without console window

Hi.

Is there any way how to run a non-GUI Ruby script in Windows without the console
window shown in the taskbar? I need to install a script to a user who would get
distracted by the console window appearing in her taskbar.

Thanks

Dalibor Sramek

···


Dalibor Sramek http://www.insula.cz/dali | In the eyes of cats,
dalibor.sramek@insula.cz | all things belong to cats.

What you could do is…

  1. Write a .bat file called “runnme” which has:

start ruby c:\path\to\ruby_script.rb

  1. Create a symlink (shortcut, sorry) to the user’s desktop.

  2. Set the properties of runme.bat to “run-minimised”

That way it would be hidden.

HTH,

– Thomas Adam

— Dalibor Sramek dali@insula.cz wrote: > Hi.

···

Is there any way how to run a non-GUI Ruby script in Windows without the
console
window shown in the taskbar? I need to install a script to a user who
would get
distracted by the console window appearing in her taskbar.

Thanks

Dalibor Sramek


Dalibor Sramek insula.cz | In the eyes of cats,
dalibor.sramek@insula.cz | all things belong to cats.

=====
Thomas Adam

“The Linux Weekend Mechanic” – www.linuxgazette.com


Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

Hi.

Is there any way how to run a non-GUI Ruby script in Windows without the
console
window shown in the taskbar? I need to install a script to a user who would
get
distracted by the console window appearing in her taskbar.

Thanks

Dalibor Sramek


Dalibor Sramek insula.cz | In the eyes of cats,
dalibor.sramek@insula.cz | all things belong to cats.

Isn’t that what rubyw is for? I think if you run “rubyw.exe yourscript.rb”
it’ll run without a console. Not sure how you’re starting your app – e.g.
from scheduler just use the above command as the command line to start it.
With user intervention create a shortcut with the above command as the target,
etc. Either way your script should run without creating a window.

···

On Fri, 5 Sep 2003 22:30:18 +0900 Dalibor Sramek dali@insula.cz wrote:

The windows build of ruby should have a rubyw.exe which doesn’t open a
console window.

Cheers,
alan

Dalibor Sramek dali@insula.cz wrote in message news:1062768613.3f588fe555904@www.epot.cz

···

Is there any way how to run a non-GUI Ruby script in Windows without the
console window shown in the taskbar?

Thanks, guys. Of course, rubyw.exe is the right solution. I tried it before
but it did not work with non GUI scripts. Probably my Ruby installation was
corrupted. After reinstall everything works perfectly.

One more question:
Is there any way to create system tray icon for a Ruby programm in Windows?
Can one of the GUI bindings for Ruby do that?

Dalibor Sramek

···

On Sat, Sep 06, 2003 at 03:10:23AM +0900, Alan Chen wrote:

The windows build of ruby should have a rubyw.exe which doesn’t open a
console window.


Dalibor Sramek insula.cz | In the eyes of cats,
dalibor.sramek@insula.cz | all things belong to cats.

Using vruby (included in the PragProg distro).

Homepage is:
http://www.threeweb.ad.jp/~nyasu/vruby/vrproject-e.html

Many samples at:
http://www.threeweb.ad.jp/~nyasu/vruby/samples-e.html

For SysTray: ------------------------------>>>
http://www.threeweb.ad.jp/~nyasu/vruby/sample/traytest.rb

Download sample scripts:
http://www.threeweb.ad.jp/~nyasu/vruby/vruby030906.zip

daz

···

“Dalibor Sramek” dali@insula.cz wrote:

One more question:
Is there any way to create system tray icon for a Ruby programm in Windows?
Can one of the GUI bindings for Ruby do that?

Dalibor Sramek