in reply to Hiding the dos console where perl program was called from in windows?

If you are using ActiveState Perl, the easiest way is to simply associate a different file extension (.wpl for example) with the wperl.exe. Then when you run a .wpl script, it will run without a DOS console.

If you are using another distribution of Perl, then you are not out of luck either...

Jenda's GUI Scripts has info on hacking perl.exe and also this snippet - Thanks Jenda!

use Win32::GUI; BEGIN {Win32::GUI::Hide(scalar(Win32::GUI::GetPerlWindow()))};

I seem to be forgeting one or two other ways but this should put you on the right track.

  • Comment on Re: Hiding the dos console where perl program was called from in windows?
  • Download Code

Replies are listed 'Best First'.
Re: Re: Hiding the dos console where perl program was called from in windows?
by buzzthebuzzsaw (Acolyte) on Nov 13, 2002 at 23:38 UTC
    Excellent!

    That's worked a treat.
    Those windows were beginning to bug me.

    Thanks a million guys.