Windows 2012 scheduled task calls a BAT file issue.

I have created a schedule task on a Windows 2010 server to run a BAT file.  I have already specify the full path of the BAT (for ex: c:\scripts\test.bat) in the Program/Script field and put the full path in the Start-in field (for example c:\scripts).

The BAT runs fine in Windows Explorer.  However, when schedule task calls it, it runs, provides the expected result but it just keeps on running.  

Please advise if anyone has a clue to fix it.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITEnd-user supportCommented:
It may be a refresh issue in the Task Scheduler screen. Press F5. Does that fix it?
Bill PrewIT / Software Engineering ConsultantCommented:
Please share the exact BAT file here so we can look at it.

something in the batch prevents the normal ending. The scheduler service doesn't get a end to the command.
Fix the batch or put a maximum duration to the task. In this later the command will be killed by the service at the end of the duration - with a warning in traces.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.