Ask the Expert

Task that calls a .bat file hangs regularly

I have a server running Windows 2000 with 256 MB RAM. I have several tasks scheduled, but one that calls a .bat file seems to hang every other day. I use this same standard across many other identical servers with no problem. I can delete it but when MSTASK.EXE hangs, it cannot be stopped -- it just says "Stopping" in the services window. I tried to use KILL.EXE and that doesn't do anything either. Any suggestions? Would using the .cmd extension improve performance/reliability? Could I copy over the MSTASK.EXE from another PC as a start? Thanks.

Requires Free Membership to View

I don't know of a specific solution, but the issue may not be with Scheduled Tasks. Delete the scheduled task then manually execute the .bat file at the necessary time each day for five days. If the script hangs, then you know the script is the problem not Scheduled Tasks. If it is a script issue, you'll have to troubleshoot it. If it is Scheduled Tasks, I would first seek out a hotfix (if there is one). You could check the version and file size on all Scheduled Tasks-related files to make sure they have not been corrupted or damaged. A tool called ProcessEX from and can help you find all the related files.

This was first published in June 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: