Problem with Batch file running in DOS prompt or CMD when opening it

In our Windows 8 Pro PC, we have a batch file that when we click on it we get the an "Application Error" (see pic below):

cmd.exe - Application Error
The application was unable to start correctly (0xc0000142). Click OK to close the application.
apps error

Yet in another user within the same PC batch file works.
rayluvsAsked:
Who is Participating?
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.

Bill PrewCommented:
What is in the batch script?

~bp
0
rayluvsAuthor Commented:
Example of batch file:

taskkill /im AppleIEDAV.exe /t /f
taskkill /im AppleMobileDeviceService.exe  /t /f
taskkill /im APSDaemon.exe /t /f
taskkill /im CCleaner64.exe /t /f

Open in new window

0
Bill PrewCommented:
Okay, reading the original error more closely, I doubt it is even getting into the batch script.  Seems like CMD.EXE can't load.  I suspect something has gotten corrupted on that computer.

Have you tried another batch script, do all have the same problem?

Have you tried a system restore back to a know good restore point?

Have you tried repairing Windows?

~bp
0

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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

rayluvsAuthor Commented:
the same CMD.EXE is used by another user login with the same computer and works perfectly.
0
Bill PrewCommented:
Interesting, typically that error is caused by a system file type problem.

Could be an unwanted piece of malware in one users profile, or perhaps a copy of cmd.exe that isn't right.  I'd take a good look at all the C:\USERS file for that user to look for anything that could be causing a problem.

If you try to RUN cmd.exe from the Windows Run tool, does that error?  What about if you try to run COMMAND.COM?

~bp
0
rayluvsAuthor Commented:
cmd.exe from "Run" works.
0
Bill PrewCommented:
Try starting the bat from there, so RUN:

cmd /c "yourbatch.bat"

~bp
0
rayluvsAuthor Commented:
Just reread your entry ID: 40753990 regarding "Have you tried another batch script".  Just did it and it worked.  

Searching more into it Comodo firewall somehow has it blocked.  So we just deleted it and recreated and it worked!

Thanx!
0
Bill PrewCommented:
Excellent, glad you tracked that down, and glad some of my thoughts were helpful!

~bp
0
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
Microsoft DOS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.