Solved cmd.exe and *.bat problem

August 22, 2011 at 12:37:47
Specs: Windows Server 2003
1. I can't run any .bat file. E.g.: .bat file contains only PAUSE statement and it should return usual black window with "press any key to continue...". But it doesn't happen.
2. If I try Start>Run>cmd.exe black window only blinks for a moment, but it should give me a prompt line.
3. If I try Start>Run>cmd.exe /? it gives me normal usual help screen, but after showing help black window disappears.
4. When I tried to copy cmd.exe from another Windows Server 2003 computer, it was all the same trouble.
5. I tried to launch alternative command line processor, "Console2" for Windows. It appears in processes for 3 seconds and disappears, no prompt line also.

Please help!


See More: cmd.exe and *.bat problem

Report •

✔ Best Answer
August 23, 2011 at 06:29:25
You can try the following:
START / RUN / cmd.exe /d

The /d parameter is specified on the command line, CMD.EXE ignores AutoRun registry variables.

Maybe that helps to figure out the problem.

You are expecting our help, we are expecting your response !!!



#1
August 22, 2011 at 12:51:41
look in the application log for the entry related to the cmd window closing.

It would appear you have a corrupted server. Perhaps malware or virus infection. Start by running chkdsk /f on the volume to make sure of no file/disk corruption. Review your event viewer logs for clues.

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

#2
August 22, 2011 at 13:06:03
Neither application nor event log get any additional entries on the moment when I start cmd.exe...
If this server is corrupted by virus, do I have to reinstall OS? Is there another solution? Actually I killed 2 malware files, but now antivirus says that the system is clean.

Any ideas?


Report •

#3
August 22, 2011 at 15:34:19
While your antivirus software had not recognized the installed malware, how can you trust the antivirus software, when it says, "you system is clean now" ?

You are expecting our help, we are expecting your response !!!


Report •

Related Solutions

#4
August 23, 2011 at 01:44:06
Paulsep, I'm not sure that system is clean, I guess no one can be 100% sure while you have internet access. I just unplugged computer and scanned it through with different antivirus scanner. But anyways, it is not the question. Let's presume that memory is clean and there are no malware processes running.

What is possible to do to solve the problem?


Report •

#5
August 23, 2011 at 06:29:25
✔ Best Answer
You can try the following:
START / RUN / cmd.exe /d

The /d parameter is specified on the command line, CMD.EXE ignores AutoRun registry variables.

Maybe that helps to figure out the problem.

You are expecting our help, we are expecting your response !!!


Report •

#6
August 25, 2011 at 08:24:02
paulsep, you helped me, thank you a lot!

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
was normal, and I didn't look the other branch.

But I should have been looking
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
also, because it has "EXIT" value...

Very simlpe. Thanx once more!


Report •

#7
August 25, 2011 at 08:49:42
You are welcome !!!

You are expecting our help, we are expecting your response !!!


Report •

Ask Question