Windows 8 and 8.1 Forums


Command Prompt Admin not opening

  1. #1


    Posts : 7
    Windows 8.1

    Command Prompt Admin not opening


    I am unable to open Command Prompt (Admin). I get the following error: "This file does not have a program associated with it for performing this action. Perhaps .... ". Does anyone have a solution for this.

      My System SpecsSystem Spec

  2. #2


    India
    Posts : 6
    windows 7


    This issue is something I’ve only seen when a program or virus managed to corrupt the .exe association in registry causing the user unable to run any programs.
    If you have solved this issue on XP the items a bit different on Windows 7. It turns out to be a corrupted .exe association and the reason those steps I taken didn’t work is because the Windows Vista registry location for exe association is different from XP. Obviously using the XP fix cannot work on Vista!
    When you have a corrupted exe association, you definitely cannot use any registry editor to fix it because it is impossible to run it in the first place. So here are a few methods you can try:
    1. Open the command prompt. Make sure to run it as “Administrator”. Run command prompt and type assoc.exe=exefile (If you get access denied error, try step 2). If you want to run a file as administrator right click a shortcut to the program and select “Run as Administrator”. This will normally fix the corrupt exe

    2. Download this file called “Vista-7-fixexe.txt and rename it to “Vista-7-fixexe.reg”. Some security software will not let you download registry files. If you open the file it’s contents should look like this:


    3. Open command prompt and type the following command REG IMPORT vista-7-fixexe.reg. Make sure you’ve already CD to the directory where the .reg file is. (If you have problems getting this to work, try step 4)
    4. Download the compiled version of the registry file above and run it.
    5. Microsoft Fix It has an automated way to fixing the exe association problem. Simply download this MicrosoftFixit50194.msi file and run it.

    Regards,
    Windows Drivers
    Last edited by pravinkumar; 28 Jan 2015 at 05:46.
      My System SpecsSystem Spec

  3. #3


    Posts : 7
    Windows 8.1


    Quote Originally Posted by pravinkumar View Post
    This issue is something I’ve only seen when a program or virus managed to corrupt the .exe association in registry causing the user unable to run any programs.
    If you have solved this issue on XP the items a bit different on Vista and Windows 7. It turns out to be a corrupted .exe association and the reason those steps I taken didn’t work is because the Windows Vista registry location for exe association is different from XP. Obviously using the XP fix cannot work on Vista!
    When you have a corrupted exe association, you definitely cannot use any registry editor to fix it because it is impossible to run it in the first place. So here are a few methods you can try:
    1. Open the command prompt. Make sure to run it as “Administrator”. Run command prompt and type assoc.exe=exefile (If you get access denied error, try step 2). If you want to run a file as administrator right click a shortcut to the program and select “Run as Administrator”. This will normally fix the corrupt exe

    2. Download this file called “Vista-7-fixexe.txt and rename it to “Vista-7-fixexe.reg”. Some security software will not let you download registry files. If you open the file it’s contents should look like this:


    3. Open command prompt and type the following command REG IMPORT vista-7-fixexe.reg. Make sure you’ve already CD to the directory where the .reg file is. (If you have problems getting this to work, try step 4)
    4. Download the compiled version of the registry file above and run it.
    5. Microsoft Fix It has an automated way to fixing the exe association problem. Simply download this MicrosoftFixit50194.msi file and run it.

    Will this work on Windows 8.1?
      My System SpecsSystem Spec

  4. #4


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    You can use Task Manager also---

    Click image for larger version

    Click image for larger version
      My System SpecsSystem Spec

  5. #5


    Posts : 7
    Windows 8.1


    Any one has any other solution?
      My System SpecsSystem Spec

  6. #6


    Posts : 2,480
    Windows 10 Pro x64


    Run a scan with Malwarebytes Anti-Malware.
      My System SpecsSystem Spec

  7. #7



    Trying to Sith things out
    Bamberg Germany
    Posts : 2,290
    Windows 10 Pro 64 bit


    Try Tweaking.com Windows Repair(All in One) with these settings:
    Click image for larger version
      My System SpecsSystem Spec

  8. #8


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Quote Originally Posted by aayushenator View Post
    Any one has any other solution?
    Shortcut---

    Click image for larger version

    Click image for larger version

    Click image for larger version
      My System SpecsSystem Spec

  9. #9



    Trying to Sith things out
    Bamberg Germany
    Posts : 2,290
    Windows 10 Pro 64 bit


    Just a question:
    Can you run commands in powershell as administrator? I know this doesn't fix the problem but it can help sorting things out.
      My System SpecsSystem Spec

  10. #10


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Quote Originally Posted by Cliff S View Post
    Just a question:
    Can you run commands in powershell as administrator? I know this doesn't fix the problem but it can help sorting things out.
    I can---

    Click image for larger version
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Command Prompt Admin not opening
Related Threads
Hi, I need to execute the command prompt as admin. When I try to do it the command prompt window doesn't open and there are no errors. If I run the command prompt without admin privs it works, but I then can't do what I need to do in the admin window. Can someone help me to understand why this...
Command prompt (Admin) in General Support
Everytime I try to use the above command, the console box vanishes within a second. I have also tried to install chrome, the console opens and closes winthin a second, hence not able to read any nessages. I have full administrator right. No viruses Thanks
Command Prompt help in General Support
The average monitor can display 25 lines of text in full screen mode. When you list a directory containing more than 25 files, some of the filenames disappear off the top of the screen before you have a chance to read them. What do you add to the DIR command to always prevent this?
Hi, I often format my laptop and uses virtual machine as well. So I had a batch (.bat) file to change all windows setting through registry. This batch file also changes command prompt screen size, buffer size and quick edit mode. However this does not work on Windows 8 command prompt setting. ...
Hey all, Been quite a while since I've posted here, but an odd problem has come up for me. Overall Windows 8 has been great and problem-free, but I'm stuck on this one. For some reason, when I open the Run box, it says "This task will be created with administrative privileges" as if I had...
Solved elevated command prompt...huh? in General Support
how do I open an elevated command prompt?
Command Prompt crashes in General Support
Hi After upgrading from Windows 7 to Windows 8 everything seems to works fine except when I want to run command line applications from 3rd party programs. When this is happening the Windows 8 command prompt just stop working. I have to use many programs based on command prompt for web developing...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook