Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Task Scheduler wait for action to complete

07 Jun 2010   #1
jonnyb

Windows 7 64bit
 
 
Task Scheduler wait for action to complete

Hi-

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 System SpecsSystem Spec
.
07 Jun 2010   #2
richc46

Microsoft Community Contributor Award Recipient

Windows 10, Home Clean Install
 
 

Take a look at the scheduler. Are there any conditions that would cause the .exe to change times, ie. only if not used or only if user is logged on.
My System SpecsSystem Spec
07 Jun 2010   #3
Dwarf

Windows 8.1 Pro RTM x64
 
 

Why not combine them into a single batch file?

Code:
@ECHO OFF
start <path><filename>.exe
{Your original batch file}
My System SpecsSystem Spec
.

08 Jun 2010   #4
jonnyb

Windows 7 64bit
 
 

Thanks for the replies.

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 System SpecsSystem Spec
08 Jun 2010   #5
Dwarf

Windows 8.1 Pro RTM x64
 
 

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).
My System SpecsSystem Spec
08 Jun 2010   #6
jonnyb

Windows 7 64bit
 
 

Sounds good Dwarf...thanks again for your help with this.
My System SpecsSystem Spec
Reply

 Task Scheduler wait for action to complete




Thread Tools




Similar help and support threads
Thread Forum
Need help creating a task scheduler task to move files over a network.
Hello everyone, I need to have a task run that will move the contents of a folder from one computer to another over my home LAN. Files get downloaded during the night on one computer and then need to be transfered to another. Usually I am doing this by hand, but then though maybe I could get...
General Discussion
Task Scheduler - Create Task to Display a Message Reminder
How to Display a Message Reminder in Windows with Task Scheduler This will show you how to create yourself, or another user or group, a message reminder scheduled to display for when and how often you like in Windows 7 or Vista using Task Scheduler. All users on the computer will be able to...
Tutorials
System Restore using Task Scheduler - Bypass the 7 Day wait
I am trying to see if there is any way to enable System Restore through Task Scheduler to run every night and by pass the 7 day wait. I understand that there will only be a new system restore created if there have been none for 7 days. I have tons of disk space and would like to find a method...
Performance & Maintenance
simple task scheduler question: changing a task name
Hello, I scheduled some tasks in the task scheduler. One of the tasks has a typo and another I would like to change its name. There doesn't seem to be a way of doing this short of resetting up the tasks from scratch and deleting the original tasks. Would anyone know how to rename tasks in the...
Performance & Maintenance
Task scheduler unable to load task status/active tasks at startup.
My task manager is unable to load task status/active tasks at startup. I get the message: "The selected task "{0}" no longer exists. To see the current tasks, click Refresh." When I refresh I get the same message. I checked and found that under Microsoft the problem was in the defrag...
Performance & Maintenance
Task Scheduler failing to start task with merged network locations
I have two routers I usually connect to (work and home) and each have wireless access. That means there are essentially 4 network locations I have listed. I have merged each respective network location (wired and wireless) into their own singular network location - "Work" and "Home". I also...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:52.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App