Connecting Tech Pros Worldwide Forums | Help | Site Map

List of Scheduled Tasks of Windows

Needs Regular Fix
 
Join Date: Dec 2006
Posts: 293
#1: Aug 9 '09
How to list the scheduled tasks of Windows ?

nithinpes's Avatar
Expert
 
Join Date: Dec 2007
Posts: 400
#2: Aug 13 '09

re: List of Scheduled Tasks of Windows


You may use Win32::OLE module for this.

However, if your requirement is just to get a raw list of scheduled tasks(with no details), you can make use of the following DOS command(run it inside perl script using system command or reverse quotes):
Expand|Select|Wrap|Line Numbers
  1. dir /b "%SystemRoot%\tasks"
  2.  
Newbie
 
Join Date: Jul 2008
Posts: 26
#3: Aug 26 '09

re: List of Scheduled Tasks of Windows


You must use Win32 COM apis (Win32 ng for C code sample)
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#4: Aug 27 '09

re: List of Scheduled Tasks of Windows


Quote:

Originally Posted by george666 View Post

You must use Win32 COM apis (Win32 ng for C code sample)

Its nice of you to provide a link to sample C code, but this is the Perl forum and the OP seemed to be looking for a way to do it with Perl. Thus, the module that was provided should allow them to do what they wanted to, in Perl.

Regards,

Jeff
Reply