in reply to Re^3: minimizing a window on computer startup
in thread minimizing a window on computer startup
The "Show"-parameter can take different settings, for instance:use Win32::AdminMisc ; my $prog = q(c:\\windows\\notepad.exe); my $pid = Win32::AdminMisc::CreateProcessAsUser( $prog, Flags => DETAC +HED_PROCESS, Show => SW_MI +NIMIZE ); if ($pid) {print "Success starting $prog, new pid is $pid";} else { print "Failure starting $prog";}
Check out the documentation for the full list.
A .ppd package for Win32::AdminMisc can be downloaded here
Regards,
ldln
|
|---|