Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: launch perl app in minimized mode

by jbware (Chaplain)
on Feb 26, 2004 at 15:47 UTC ( [id://332023]=note: print w/replies, xml ) Need Help??


in reply to launch perl app in minimized mode

You may want to try this:
exec("start /min $filename") || die "Could not launch batch file\n";

-jbWare

Replies are listed 'Best First'.
Re: Re: launch perl app in minimized mode
by Anonymous Monk on Feb 26, 2004 at 16:09 UTC
    Wow, that works. Thank you all very much. Have a peaceful day.
      Yep, that works, but in the spirit of TIMTOWTDI: PAR has a '--gui' option that will suppress a command prompt.

      Note: Unfortunately ActiveState PPM has a stale copy of PAR. You'll have to perl -MCPAN -e "install PAR" instead, but this will work fine. No C compiler is required to use PAR. This is a cool trick especially if you have Tk apps and you don't want to run them from a DOS box at all. But yes, you don't want a Tk app...is this still useful? Maybe.

      If you didn't spawn a GUI in your app, I would theorize this would create a background process that would just go on it's merry way without ever appearing on the Windows desktop. Another option would be to have your Perl app install itself as a Win32 service -- not being a hardcore Windows user -- I have yet to experiment with that possibility.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://332023]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found