Can you open shortcuts and exe files? Check out the link below.
http://windowsxp.mvps.org/disablecmd.htm
If you can't open shortcuts and/or exe files download the LNK,EXE and COM File Association Fixes at the link below which also has instructions for running them.
Windows
I recently installed Advanced System Optimizer and found it really good. The problem is that I think I accidently made it open all Windows NT command scripts in notepad.
I cannot execute the file type, just open it in Notepad(Windows NT command script=.cmd, right?)
I tried going into tools and look for the file associations, but couldn't find .cmd. In the Advanced System Optimiser I cannot find the option to switch it back.
I am running Windows XP Media Center edition SP3, and any help would be greatly appreciated.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic