Scheduled Task

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here's what I'm trying to do: stop several services, run MSDE backup, Run
Windows Backup, start aservices.

I've created a batch file to stop the needed services and start the needed
services. Is it possible to created a batch file to launch the backup task.

I mean I could just create three schedule tasks but that id reall
ineffficent and its important that the services don't restart till the backup
is finished.
 
Hi,

Thanks for your posting.

My understanding is You want to make sure the services are started after
the backups are done.

I'm afraid you have to craete an application to check the scheduled task's
status to determine whether start the services. Common completion codes for
scheduled tasks are:
0x0: The operation completed successfully.
0x1: An incorrect function was called or an unknown function was called.
0xa: The environment is incorrect.

If you need assistance about coding the application, I think this inquire
would best be address in the Developer newsgroups. I have provided the link
below:

http://msdn.microsoft.com/newsgroups/default.asp

Thanks.

Best regards,

Vincent Xu
Microsoft Online Partner Support

======================================================
Get Secure! - www.microsoft.com/security
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties,and confers no rights.
======================================================



--------------------
 
you missing what I'm asking. What I'm trying to do is make what I currently
do more automatic. I currently have a batch file that stop four services,
another one that starts them, and a windows backup job that bavks up the
files I need. I ts a rather manual process right now. I would like to
create one job in a batch script so I can run it through task manager. I
want to write a script that does the following stop certian services, run a
NT backup job, and start the same services that were stopped.
 
Hi Geroge,

Thanks for your reply.

I'm sorry if I didn't explain clearly in my first reply. For a development
related request would best be address in the Developer newsgroups. I have
provided the link below:

http://msdn.microsoft.com/newsgroups/default.asp

Thank you for understanding.

Best regards,

Vincent Xu
Microsoft Online Partner Support

======================================================
Get Secure! - www.microsoft.com/security
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties,and confers no rights.
======================================================



--------------------
 
Why don't you just combine the 3 jobs????????

For the NTBackup, right-click the job and press Properties. Extract the command line.

See tip 2265 in the 'Tips & Tricks' at http://www.jsifaq.com for an example of the command line for NTbackup.



you missing what I'm asking. What I'm trying to do is make what I currently
do more automatic. I currently have a batch file that stop four services,
another one that starts them, and a windows backup job that bavks up the
files I need. I ts a rather manual process right now. I would like to
create one job in a batch script so I can run it through task manager. I
want to write a script that does the following stop certian services, run a
NT backup job, and start the same services that were stopped.

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Back
Top