Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to hide/inhibit the console window when launching a Perl script on Windows?

by jdporter (Paladin)
on Mar 13, 2006 at 15:19 UTC ( [id://536269]=note: print w/replies, xml ) Need Help??


in reply to How to hide/inhibit the console window when launching a Perl script on Windows?

The following technique is useful when the window you want to hide isn't the one you're interacting with. You can see the program's console output if you run it from a command prompt; but if you launch the script from Explorer (double-click; Start>Run, etc.), this hides the window.
use Win32::API; sub hide_console { Win32::API->new( 'kernel32', 'FreeConsole', [], 'I' )->Call(); }

Log In?
Username:
Password:

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

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

    No recent polls found