Windows – right click on program > “%1” %* instead of run

file extensionrunaswindows 7windows-registry

I have windows 7 and downloaded a program (.exe possibly containing a virus), but didn't install it. Then I right clicked on the program > open with > notepad (always use this program not selected), which opened notepad with an error. All programs got the notepad file icon and opened with notepad.

After searching Microsoft help pages and contacting technical support, I followed this article http://support.microsoft.com/kb/2688326. Which solved the problem (i can now run programs). However now if I right click on a program which is supposed to say run as the first option it says "%1" %*

can someone with Windows 7 home premium tell me what it says in the three registries, it speaks about in the link.

@Amirreza Nasiri your answer is only based on a spelling mistake I made (and corrected) in the question. and therefore didn't solve the problem.

Best Answer

According to the article, in the "Let me fix it myself" session steps 8 and 11 where you should change the Value data: to "%1" %* at both these paths:

HKEY_CLASSES_ROOT\exefile
HKEY_CLASSES_ROOT\exefile\shell\open

You made mistake and changed it to "%1"%* instead of "%1" %*. You should note that there is a Space character between second quotation mark and second percent characters.

Related Question