in reply to Launching a Win32::GUI app without launching a terminal
That you can use within the application and it will hide the DOS window/command prompt almost immediately.my ($dos) = Win32::GUI::GetPerlWindow(); Win32::GUI::Hide($dos);
The second example is word for word from the O'Reilly cookbook, section 15.17#!/usr/bin/perl -w # loader - starts Perl scripts without the annoying DOS window use strict; use Win32; use Win32::Process; # Create the process object. Win32::Process::Create($Win32::Process::Create::ProcessObj, 'C:/perl5/bin/perl.exe', # Whereabouts of Perl 'perl realprogram', # 0, # Don't inherit. DETACHED_PROCESS, # ".") or # current dir. die print_error(); sub print_error() { return Win32::FormatMessage( Win32::GetLastError() ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Launching a Win32::GUI app without launching a terminal
by jlongino (Parson) on Oct 03, 2001 at 01:50 UTC |