Leser: 24
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
my $process; my $path = "C:\\Windows\\explorer.exe"; my $app = "explorer "; my $args = ""; if(Win32::Process::Create($process, $path, $app.$args, 1, NORMAL_PRIORITY_CLASS, ".") == 0) { ErrorReport(); } else { $process->Suspend(); # Create start event log # system("EVENTCREATE...."); $process->Resume(); $process->Wait(INFINITE); # Create stop event log # system("EVENTCREATE...."); }