note
bmann
The docs ([cpan://Win32::TaskScheduler]) say <c>SetApplicationName</c> expects just the name of the app. Use <c>SetParameters</c> for the rest, ie:<p>
<code>my $APP_NAME = q#c:\\perl\\bin\\perl.exe#;
my $PARAMS = q#-MWin32 -e "Win32::InitiateSystemShutdown(' ','Rebooting',5,1,1);"#;
# ...
$scheduler->SetApplicationName( $APP_NAME );
$scheduler->SetParameters( $PARAMS );
</code><p>
Note: <strike>untested!!!</strike> now tested, parameters and command line are properly quoted.
626069
626069