Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

"How to start a different task when other task stops" in windows xp.By using task scheduler it has to happen. either programmetically or through command line.

share|improve this question

1 Answer 1

You will have to make the "if done, then start" logic within the task executable itself. Meaning, schedule a task that calls a batch file, VB script or PowerShell script. That script will call the command that you want (for example, ntbackup, robocopy, whatever it is that you're doing) and then on the last line it will call schtasks.exe to trigger the next command.

Other than that, there is no built-in capability to call another task upon successful completion of one within Windows XP (that I am aware of).

share|improve this answer
    
No command is there to do my work? –  abcdefgh Apr 18 '12 at 5:47
    
@abcdefgh - I think Wes's last sentence pretty much sums it up: ...there is no built-in capability to call another task upon successful completion of one within Windows XP –  Mark Henderson Apr 18 '12 at 5:56
    
yaya k thank you.. i will try to work on it. thanks again –  abcdefgh Apr 18 '12 at 6:00
    
can u give the script with any 2 task names let us say "task1,task2". –  abcdefgh Apr 18 '12 at 6:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.