Posted on 2006-03-06 17:38:56-08 by marco
SetApplicationName($Appname)
i am using the Win32::TaskScheduler module and there is a function: SetApplicationName($Appname) that writes the command to run by the TaskScheduler job. in my script the line is as follows : $scheduler hashSymbol SetApplicationName("c:/Perl/bin/perl.exe D:/logs.pl"); now thats a problem cause the command thats being entered to the TaskScheduler job is "c:/Perl/bin/perl.exe D:/logs.pl" with commas as you can see and its preventing windows recognizing it as a perl program. as i checked there is a problem with the space between (c:/Perl/bin/perl.exe)&(D:/logs.pl) . if only i could transfer all the line with out being add the commas windows will recognize it as perl and the run of the job will be successful. here is the line of my code : please advise $scheduler hashSymbol SetApplicationName("c:/Perl/bin/perl.exe D:/logs.pl");
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.