question

MadhuP-5539 avatar image
0 Votes"
MadhuP-5539 asked LimitlessTechnology-2700 answered

stop the next process based on A process out parameter in Windows Task scheduler

stop the next process based on A process out parameter in Windows Task scheduler

More deatils:

Wnndows task schedulerte

:Job1
1. A.exe
2. B.exe
if A.exe Run completed and out Parameter is "Fail" then No need to run B.exe( i.e. exit the job1)

Please advise in using Task Scheduler in Single Job with 2 exe run.

windows-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hi there,

In your case, you need setup two scheduled tasks, each with the same executable, but different parameters depending on what you want that instance to do.

You can try out these commands to see if it is helpful
https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/stop-scheduledtask?view=windowsserver2019-ps

Hope this Answers all your queries , if not please do repost back .
If an Answer is helpful, please click "Accept Answer" and upvote it : )

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.