use wperl.exe instead of perl.exe
HTH
| [reply] |
BEGIN{require Win32::Console;Win32::Console::Free() if ($^O eq "MSWin32");} | [reply] [d/l] |
Thanks,
Its actually Windows 2000. Do I need to modify anything for it to work with Windows 2000?
| [reply] |
According to the cookbook no. I have used this on WinXP and Win 2000 with no problems.
I added this to a script so I could use as scheduled task. Works great and I have not seen any popups when it runs!
Hope this helps!
| [reply] |
It seems sweetblood's answer did not get noticed, "wperl" is what you need, it's in the standard ActiveState distribution, in the bin directory. | [reply] |
There's a way to use windows scheduler to execute your scripts similar to how one would do it via CRON on a UNIX system.
There's more info at ActiveState aspn site
Example from the site:
at 23:37 /interactive /every:M,T,W,Th,F,S,Su cmd /c "c:\perl\bin\perl.exe c:\test.pl"
_____________________
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true."
Robert Wilensky, University of California
| [reply] |
Look at Win32::Job. It has options to spawn a process in a minimized, maximized or hidden (the one you want) window.
| [reply] |
| [reply] [d/l] |