Solved

Cannot launch .CMD files

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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