Is there a way to add the "Open command prompt" back tin the file Menu

Page 1 of 2 12 LastLast

  1. Posts : 26
    Win10 x64
       #1

    Is there a way to add the "Open command prompt" back tin the file Menu


    After the creator's update they removed the Open command prompt under file in the file explorer. Is there a way to add it back?
    Attached Thumbnails Attached Thumbnails Is there a way to add the "Open command prompt" back tin the file Menu-cmd-here-file-menu.png  
      My Computer


  2. Posts : 3,257
    Windows 10 Pro
       #2

    Interesting. You do know that you can do anything in a powershell prompt that you can in command prompt, right?
      My Computer


  3. Posts : 26
    Win10 x64
    Thread Starter
       #3

    Just trying something like

    for %i in ("*.mp4") do echo "%~ni"

    returns an error.

    I don't wanna learn a new language.
      My Computer

  4.   My Computers


  5. Posts : 26
    Win10 x64
    Thread Starter
       #5

    Thank you. Better than nothing I guess.
      My Computer


  6. Posts : 25,032
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #6

    ...and on the Win+X menu (or right-click on Start).
    Show Command Prompt or Windows PowerShell on Win+X menu in Windows 10
      My Computers


  7. Posts : 1,809
    W7 Ultimate SP1 (64 bit), LM 19.2 MATE (64 bit), W10 Home 1703 (64 bit), W10 Pro 1703 (64 bit) VM
       #7

    Mystere said:
    Interesting. You do know that you can do anything in a powershell prompt that you can in command prompt, right?
    PowerShell commands are often ridiculously verbose.
      My Computer


  8. Posts : 56,100
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #8

    @GoodTimesAhead


    Just FWIW.....if anyone must have a command prompt and feel stuck with Powershell, simply type cmd in Powershell and hit enter. You'll be at a regular Command Prompt. It's only another way of getting there, not the best, but an easy way. If the OP doesn't like/want to use Powershell, this an alternative. Just a suggestion.
      My Computers


  9. Posts : 3,257
    Windows 10 Pro
       #9

    If you put those commands in a .cmd (or even .bat) file, then execute them, they will work because Powershell will execute .cmd and .bat files with cmd.exe

    If you want to type them into the shell natively, then just type cmd and you're in a cmd prompt within Powershell.
      My Computer


  10. Posts : 93
    Windows 10
       #10

    GoodTimesAhead said:
    Is there a way to add it back?
    I don’t think there’s a way to get this option back. No one’s found anything yet and I’ve also tried a few things myself.

    Instead, what you could do is make the “Open Windows PowerShell” Explorer file menu option open the command prompt by changing the data value of the “HKLM\SOFTWARE\Classes\Directory\shell\Powershell\command” (“HKCR\Directory\shell\Powershell\command”) registry value from
    Code:
    powershell.exe -noexit -command Set-Location '%V'
    to
    Code:
    cmd.exe /s /k pushd "%V"
    It will still say “Open Windows PowerShell” though.

    But as the best work around to this problem, I encourage any one reading this to pick up the newer language.


    lehnerus2000 said:
    Mystere said:
    Interesting. You do know that you can do anything in a powershell prompt that you can in command prompt, right?
    PowerShell commands are often ridiculously verbose.
    I’d say this is a good thing anyway, but maybe you say this because you often see people write and share PowerShell commands in their most verbose form. PowerShell lines can often be reduced quite a lot. You can be as verbose or as implicit as you want.

    For example, the command prompt command
    Code:
    for %i in ("*.mp4") do echo "%~ni"
    translates to following in PowerShell
    Code:
    Get-ChildItem -Path '*.mp4' | ForEach-Object -MemberName BaseName | Out-Default
    It’s longer than the command prompt command in its verbose form, but it can also be written in short form as
    Code:
    ls *.mp4 | % BaseName
    Additionally, it is expected you’d use tab completion and never fully type out commands.
    Last edited by Pyprohly; 30 Apr 2017 at 01:57.
      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 15:25.
Find Us




Windows 10 Forums