in reply to Win32::Process::Create() not working on windows 2008 64 bit machine

this example code from module documentation Win32::Process works fine on Win7 x64. As Win 7 and Server 2008 shares most of internal code this should work fine on 2008 too.
use strict; use warnings; use diagnostics; use Win32::Process; use Win32; sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); } my $ProcessObj; Win32::Process::Create($ProcessObj, "C:\\windows\\system32\\notepad.exe", "notepad temp.txt", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport(); $ProcessObj->Suspend(); $ProcessObj->Resume(); $ProcessObj->Wait(INFINITE);
  • Comment on Re: Win32::Process::Create() not working on windows 2008 64 bit machine
  • Download Code