Windows 7 Problem with .exe file association

melbatniji

New Member
Joined
Jan 11, 2012
I ran the command "assoc .exe=.xyz"
Now I cannot run any .exe files. At first, whenever I tried to run a .exe file, i got the "Open with" dialogue. Then when I tried to open cmd to try to undo what I have done, I chose cmd.exe at the dialogue. After that, a new cmd opens up whenever I open any of the .exe files.

Help please. How can I recover my .exe file association without having to reinstall windows?

i was experimenting with the command and I did not know that I can break things that way.

Thanks in advance.
 
Try using

assoc .exe=exefile

You can type assoc /? to get info and switches for the command.
 
Back
Top Bottom