Solved

Cannot launch .CMD files

Posted on 2008-10-31
3
1,431 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
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

867 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

17 Experts available now in Live!

Get 1:1 Help Now