http://www.perlmonks.org?node_id=262075

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.