Solved

Cannot launch .CMD files

Posted on 2008-10-31
3
1,438 Views
Last Modified: 2012-06-27
A strange thing has happened to my laptop. Whilst creating a backup script (Backup.cmd), I noticed that the usual icon for .CMD files was not displayed. It appeared the file association for .CMD was broken. I fixed it (assoc .cmd=cmdfile) and the correct icon returned, but the file still does not launch. Instead, a CMD window opens. I tried a .BAT file and the association was also broken. I repaired if (assoc .bat=batfile) and tested with a simple .BAT file and it works fine. I also noticed that the .REG association was broken. I fixed it (assoc .reg=regfile) and now .REG files merge in as expected.

I tried running my Backup.CMD script from an open CMD window and it works. It's just launching from Explorer that does not work. I have merged in a registry fragment from Kellys Korner to fix the 'cmdfile' registry bits all to no avail.

Any suggestions?
0
Comment
Question by:ajbritton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Author Comment

by:ajbritton
ID: 22854682
Found the solution.

For some reason, there was a registry entry under HKEY_CLASSES_ROOT\Applications for CMD.EXE. I renamed this as a test and I am now able to launch .CMD and .BAT files.

I'll leave the question open in case anyone understands what is really going on here and can explain why this would have affected the launching of .CMD  files but not .BAT files.
0
 
LVL 28

Accepted Solution

by:
burrcm earned 500 total points
ID: 22858967
This type of issue is generally malware. Many variations, no exe, bat, can't open regedit or taskmanager or any compbination. I would give HijackThis a run (http://www.download.com/Trend-Micro-HijackThis/3000-8022_4-10227353.html) and post the logfile to www.hijackthis.de for analysis. "Fix" the entries it identifies as nasties unless you know what they are and wish to keep them.

Chris B
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question