in reply to minimize window to systray
I think wperl.exe is your friend. Redirect your STDOUT/STDERR to wherever appropriate.(probably a logfile) So far as I know the usage is identical to that of perl.exe. That will hide the dos/command prompt that starts up - don't know if that solution is the question you were asking though.