Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Running script on WinXX without console window

by jearsh (Initiate)
on May 31, 2003 at 14:58 UTC ( [id://262075]=perlquestion: print w/replies, xml ) Need Help??

jearsh has asked for the wisdom of the Perl Monks concerning the following question:

dear monks,

i'm new to perl. the OS i plan on working with is Windows 98-XP. what I am looking to do is have a "console" perl window run in the background. Whether it is a service or not doesn't matter. yet, i want the perl script i write to run without the user knowing it.


thank you for any input.

20030531 Edit by Corion: Retitled from "hide console window"

  • Comment on Running script on WinXX without console window

Replies are listed 'Best First'.
Re: Running script on WinXX without console window
by Aristotle (Chancellor) on May 31, 2003 at 15:11 UTC
    Using wperl instead of perl will do what you want.

    Makeshifts last the longest.

Re: Running script on WinXX without console window
by dree (Monsignor) on May 31, 2003 at 16:16 UTC
      thank you dree, although i'm very familiar with win32 api because i've been programming in vb/c++ for about five years. this is an approach i didn't want to take.
        The thread shows you more than 1 way to do it. There is not only the Win32::API way but also the wperl way, the "detached process" suggested by Nitrox and so on.

        Also, you can look inside of the PAR module: it has a --gui option that works on Win32 machines to start perl exe without showing the console window.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-23 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found