?
Solved

Cannot launch .CMD files

Posted on 2008-10-31
3
Medium Priority
?
1,441 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 1500 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

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…
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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 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