Reading a Windows .JOB file using VS.NET 2008

aarganesh
aarganesh used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
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.
Found an indirect way of finding this information. 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.

Author

Commented:
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"

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial