Solved

Cannot launch .CMD files

Posted on 2008-10-31
3
1,428 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
3 Comments
 
LVL 8

Author Comment

by:ajbritton
Comment Utility
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
Comment Utility
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now