dmned
asked on
Executable file hangs in Task Scheduler
I have an executable file (*.exe) that runs fine on my Windows 7 PC. It also runs fine on my PC when I use Task Scheduler to run the file every 10 minutes. The file runs and Task Scheduler reports that it ran without any problems.
I can run the file on another Windows 7 PC without any issue. However, when I try to run the file using Task Scheduler on the second PC Task Scheduler reports that the file is running but it "hangs" and never stops running.
I tried the same setup on a third PC and was able to run the file without Task Scheduler with no issues but had the same problem as with the second PC when trying to run the file using Task Scheduler.
Any thoughts?
I can run the file on another Windows 7 PC without any issue. However, when I try to run the file using Task Scheduler on the second PC Task Scheduler reports that the file is running but it "hangs" and never stops running.
I tried the same setup on a third PC and was able to run the file without Task Scheduler with no issues but had the same problem as with the second PC when trying to run the file using Task Scheduler.
Any thoughts?
ASKER
Those links did not seem to have any helpful information. I did try adding the folder path of the executable to the Action tab of the task and it seems to have worked at least once on one of the PCs. I will update later when more tasks execute.
Dmned, when you copied three exe to the second computers, did you confirm the properties of the file weren't set to read only or being blocked because they came from another computer.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So it's now completing successfully through the Task Scheduler?
If yes, you could accept your last answer there for others to learn from. If not, we will try to continue to help.
If yes, you could accept your last answer there for others to learn from. If not, we will try to continue to help.
ASKER
No suggestions solved the issue.
http://blogs.technet.com/b/rspitz/archive/2010/11/07/scheduled-tasks-appear-hung-in-the-running-state-on-windows-server-2003-based-systems.aspx
http://social.msdn.microsoft.com/Forums/sv/winserver2008appcompatabilityandcertification/thread/29446adf-8304-4b9f-bbc4-95daf2941d53