L
Lawrence M. Seldin, CMC, CPC
I have Win2k with SP4. In the Scheduler I have a bat script that "calls 4 exe programs". However,
they are taking longer to complete. I don't want to break the script into more than one script.
I have 4 "call exe" statements. I want 2 of them to run on Monday, Wednesday and Friday.
I want the other 2, to run on Tuesday and Thursday.
Something like:
If today is Monday or Wednesday or Friday
begin
call A.exe
call B.exe
end
If today is Tueday or Thursday
begin
call C.exe
call D.exe
end
However, I only want to create a single bat file for both if statements. I already have a Task, in
the task scheduler that runs daily.
PS. If the above is difficult, maybe I could have a program that has the if statement run 1 set of
commands on "odd dates" and the other if statement to run on "even dates".
If today is Odd date of month
begin
call A.exe
call B.exe
end
If today is Even date of month
begin
call C.exe
call D.exe
end
Thanks much,
Lawrence M. Seldin, CMC, CPC
Author of POWER TIPS FOR THE APPLE NEWTON and INTRODUCTION TO CSP
Author of RECRUITSOURCE PEOPLESOFT EXAM and RECRUITSOURCE SAP/R3 EXAM
NOTE: To send me an email, remove TAKEOUT from my email address: (e-mail address removed)
NOTE: My web home page: www.seldin.net
they are taking longer to complete. I don't want to break the script into more than one script.
I have 4 "call exe" statements. I want 2 of them to run on Monday, Wednesday and Friday.
I want the other 2, to run on Tuesday and Thursday.
Something like:
If today is Monday or Wednesday or Friday
begin
call A.exe
call B.exe
end
If today is Tueday or Thursday
begin
call C.exe
call D.exe
end
However, I only want to create a single bat file for both if statements. I already have a Task, in
the task scheduler that runs daily.
PS. If the above is difficult, maybe I could have a program that has the if statement run 1 set of
commands on "odd dates" and the other if statement to run on "even dates".
If today is Odd date of month
begin
call A.exe
call B.exe
end
If today is Even date of month
begin
call C.exe
call D.exe
end
Thanks much,
Lawrence M. Seldin, CMC, CPC
Author of POWER TIPS FOR THE APPLE NEWTON and INTRODUCTION TO CSP
Author of RECRUITSOURCE PEOPLESOFT EXAM and RECRUITSOURCE SAP/R3 EXAM
NOTE: To send me an email, remove TAKEOUT from my email address: (e-mail address removed)
NOTE: My web home page: www.seldin.net