Abhijit10089 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am working on a script to hide a process using Win32::Process::Hide but whenever i execute the below written code an error: "Win32/Process/Hide.pm did not return a true value at line 5".
#!/usr/bin/perl use strict; use warnings; require Win32::Process::Hide; use Win32::Process; use Win32; my $processObj; my $filePath = $ARGV[0]; $filePath =~ s/\\/\\\\/g; sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); } Win32::Process::Create($processObj, "$filePath", "", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport(); 1;
I am using Strawberry Perl 5.16.3.1-32bit, and have installed the Win32::Process::Hide.
Can some one please let me know what i am doing wrong?
Thanks,
Abhijit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::Process::Hide did not return true value
by syphilis (Archbishop) on Jun 11, 2013 at 23:16 UTC | |
by Anonymous Monk on Jun 12, 2013 at 03:05 UTC | |
by Abhijit10089 (Novice) on Jun 12, 2013 at 16:16 UTC | |
by Abhijit10089 (Novice) on Jun 12, 2013 at 18:01 UTC | |
by Anonymous Monk on Jun 13, 2013 at 00:10 UTC | |
|
Re: Win32::Process::Hide did not return true value
by Anonymous Monk on Jun 11, 2013 at 13:08 UTC | |
by Abhijit10089 (Novice) on Jun 11, 2013 at 13:16 UTC | |
by Abhijit10089 (Novice) on Jun 11, 2013 at 17:40 UTC | |
by Anonymous Monk on Jun 12, 2013 at 03:03 UTC |