Link to home
Start Free TrialLog in
Avatar of aarganesh
aarganeshFlag for India

asked on

Reading a Windows .JOB file using VS.NET 2008

Hi
We're designing an application using VB.NET as program interface as input screen for task scheduling details & submit the job to Windows task scheduler. I know I can create the .JOB files using schtasks (use System.Command to call schtasks). Our requirement is also to read the .JOB files using VB.NET. Please let me know how I can read a Windows .JOB file using VB.NET. Thanks.
Avatar of Kamaraj Subramanian
Kamaraj Subramanian
Flag of Singapore image

Avatar of aarganesh

ASKER

Appreciate your help, however my requirement is reading the content of .JOB file and it is not with WIN32_ScheduledJob. I don't want to use AT command which is handled by WIN32_ScheduledJob because of its limitation on modifying the existing jobs, starting the jobs at logon and naming the job files.

Can you help me point out some article or code that shows on how to process .JOB files using VB.NET. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of aarganesh
aarganesh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes I've an objection...
Don't delete this question, I've provided the solution myself & let this be helpful to somebody else
The solution posted once again for convenience...
"Use schtasks to create/delete/change & query the .JOB file for the specific tasks. Although the limitation is that the commands needs to be run using System command in VB & the output to be redirected to a text file, I found this way to be much better than using the WMI"