I am using Task Scheduler to run an .exe and then a .bat file at a scheduled time each day. However, the run time for the .exe process varies between seconds and hours and I need to be sure that the first process is finished before the second Action (.bat file) is initiated by Task Scheduler. Can this be done in Task Scheduler? Appreciate any suggestions.
Thanks,
JonnyB
My Computer
OS
Windows 7 64bit
CPU
Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
Motherboard
Gigabyte Technology Co., Ltd. X58A-UD3R
Memory
24.00 GB
Graphics Card(s)
(1) ATI Radeon HD 4600 Series (2) LogMeIn Mirror Driver
Sound Card
(1) ATI High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Samsung SyncMaster XL2370HD
Hard Drives
(1) C300-CTFDDAC128MAG ATA Device (2) WDC WD6400AAKS-65Z7B0 ATA Device
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
Richc46 - I'm not sure that I follow you perfectly, but I don't believe there are any of those conditions present.
Dwarf - I think that makes the most sense, but I have two arguments that i supply the .exe from the "Add Arguments" task scheduler field and I'm not sure how to pass them if I use a batch file.
The arguments are: autoupdate=1 autoclose=1
Here is what I have so far for code in the new .bat file...if anyone has suggestions on how to get the above arguments to the DataUpdater.exe I would appreciate it.
Code:
cd C:\TrApps\
start /wait DataUpdater.exe
cd C:\Desktop\
start RunABAuto.bat
Thanks again for your help.
My Computer
OS
Windows 7 64bit
CPU
Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
Motherboard
Gigabyte Technology Co., Ltd. X58A-UD3R
Memory
24.00 GB
Graphics Card(s)
(1) ATI Radeon HD 4600 Series (2) LogMeIn Mirror Driver
Sound Card
(1) ATI High Definition Audio Device (2) Realtek High Defi
Monitor(s) Displays
Samsung SyncMaster XL2370HD
Hard Drives
(1) C300-CTFDDAC128MAG ATA Device (2) WDC WD6400AAKS-65Z7B0 ATA Device
I'll have a look at this, and report back later. I'm sure that there is a way to link 2 or more scheduled tasks in such a way that the completion of one automatically starts the second (and so on).
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0