in reply to Hiding programs launched within wperl'd script

To answer the first question try:
 use Win32::Process;
 Win32::Process::Create($ProcessObj,"C:\\windows\\system32\\tlist.exe","tlist",0,"CREATE_NO_WINDOW,".")|| die ErrorReport();

  • Comment on Re: Hiding programs launched within wperl'd script

Replies are listed 'Best First'.
Re^2: Hiding programs launched within wperl'd script
by mdog (Pilgrim) on Jan 18, 2006 at 18:11 UTC
    bravenmd --

    I was about to say I couldn't get tlist to spawn without a window but this works! Other users, remove the errant double quote before CREATE_NO_WINDOW. Still, do you know how to capture the output of tlist from this, though?

    Thanks for all the great help, monks!!! I love perlmonks (the site, that is)!