in reply to Starting a process from a win32 perl service
Check the Task Manager to see, if the iexplorer did start! See the Win32::Process pod, too:#!/usr/bin/perl use Win32::Process; my $prog="C:\\Programme\\Internet Explorer\\iexplore.exe"; my $site="http://www.gmx.de"; Win32::Process::Create($ProcessObj,$prog,'iexplore "' . $site . '"', 0 +, NORMAL_PRIORITY_CLASS, ".");
sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); } Win32::Process::Create($ProcessObj, "D:\\winnt35\\system32\\notepad.exe", "notepad temp.txt", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport(); $ProcessObj->Suspend(); $ProcessObj->Resume(); $ProcessObj->Wait(INFINITE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Starting a process from a win32 perl service
by displeaser (Hermit) on Feb 09, 2005 at 11:02 UTC | |
by m-rau (Scribe) on Feb 09, 2005 at 13:06 UTC |