Command Prompt not working for user or Administrator


  1. Posts : 6
    Windows 7 Professional
       #1

    Command Prompt not working for user or Administrator


    When selecting the command prompt from the right click on startup options I get the following message:



    'This file does not have a program associated with it for performing this action. Please install a program, or if one is already installed, create an association in the Default Programs control panel'



    Please assist with what has gone wrong and how to fix it. It was working but now not

    Thanks
      My Computer


  2. Posts : 18,430
    Windows 11 Pro
       #2

    If you press Win Key + R to open a run dialog and then run:
    cmd

    what happens?
      My Computer


  3. Posts : 6
    Windows 7 Professional
    Thread Starter
       #3

    NavyLCDR said:
    If you press Win Key + R to open a run dialog and then run:
    cmd

    what happens?
    Get a message saying: ' Windows cannot find 'cmd'. Make sure you typed the word correctly then try again'
      My Computer


  4. Posts : 15,037
    Windows 10 IoT
       #4

    Some malware infections will delete or rename that file so you can't use it to undo the infection.
      My Computer


  5. Posts : 5,451
    Windows 11 Home
       #5
      My Computer


  6. Posts : 18,430
    Windows 11 Pro
       #6

    Noeleeng said:
    Get a message saying: ' Windows cannot find 'cmd'. Make sure you typed the word correctly then try again'
    I would start by doing a repair install:
    Repair Install Windows 10 with an In-place Upgrade - Windows 10 Forums

    That should restore cmd.exe and take care of any other problems. Then I would do a complete disc cleanup using option 2:
    Disk Cleanup - Open and Use in Windows 10 - Windows 10 Forums
      My Computer


  7. Posts : 13,987
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #7

    In such a situation I've had success fixing the problem using this:
    FixExec Download
      My Computers


  8. Posts : 6
    Windows 7 Professional
    Thread Starter
       #8

    NavyLCDR said:
    I would start by doing a repair install:
    Repair Install Windows 10 with an In-place Upgrade - Windows 10 Forums

    That should restore cmd.exe and take care of any other problems. Then I would do a complete disc cleanup using option 2:
    Disk Cleanup - Open and Use in Windows 10 - Windows 10 Forums
    Thank you NavyLCDR!!!! It worked :) Much appreciated.
      My Computer


  9. Posts : 6
    windows 10
       #9

    I had this same problem with a particular folder, except it was not a folder. I had created a "shortcut" by using "add network location". The right-click - "open command prompt here" did not work with this shortcut but does work with the original folder
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:32.
Find Us




Windows 10 Forums