aarganesh
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.
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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"
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"
http://www.dotnet247.com/247reference/msgs/12/62007.aspx
http://bytes.com/groups/net-vb/362514-vb-net-code-creating-scheduled-task-job