Page 1 of 2 12 LastLast
  1.    29 Apr 2017 #1
    Join Date : Aug 2015
    Posts : 15
    Win10 x64

    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 cmd-here-file-menu.png  
      My ComputerSystem Spec
  2.    29 Apr 2017 #2
    Join Date : Sep 2014
    Nashville, TN
    Posts : 3,143
    Windows 10 Pro

    Interesting. You do know that you can do anything in a powershell prompt that you can in command prompt, right?
      My ComputerSystem Spec
  3.    29 Apr 2017 #3
    Join Date : Aug 2015
    Posts : 15
    Win10 x64
    Thread Starter

    Just trying something like

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

    returns an error.

    I don't wanna learn a new language.
      My ComputerSystem Spec
  4.    29 Apr 2017 #4
    Join Date : Oct 2013
    Posts : 25,290
    64-bit Windows 10 Pro build 17046
      My ComputersSystem Spec
  5.    29 Apr 2017 #5
    Join Date : Aug 2015
    Posts : 15
    Win10 x64
    Thread Starter

    Thank you. Better than nothing I guess.
      My ComputerSystem Spec
  6.    29 Apr 2017 #6
    Join Date : Aug 2016
    S/E England
    Posts : 4,536
    10 Home x64 (1709) (10 Pro on 2nd pc)

    ...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 ComputersSystem Spec
  7.    29 Apr 2017 #7
    Join Date : Aug 2014
    Australia, Adelaide
    Posts : 1,561
    W7 Ultimate SP1 (64 bit), LM 18.2 MATE (64 bit), W10 Home (64 bit)

    Quote Originally Posted by Mystere View Post
    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 ComputerSystem Spec
  8.    29 Apr 2017 #8
    Join Date : Oct 2014
    Arnold, MD
    Posts : 29,076
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)

    @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 ComputersSystem Spec
  9.    29 Apr 2017 #9
    Join Date : Sep 2014
    Nashville, TN
    Posts : 3,143
    Windows 10 Pro

    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 ComputerSystem Spec
  10.    30 Apr 2017 #10
    Join Date : Mar 2015
    Sydney, NSW
    Posts : 93
    Windows 10

    Quote Originally Posted by GoodTimesAhead View Post
    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.


    Quote Originally Posted by lehnerus2000 View Post
    Quote Originally Posted by Mystere View Post
    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 ComputerSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Solved Context menu now has "Powershell" instead of "Command Prompt"
So I updated to the CU over a week ago, and I noticed an odd change. The "Open command prompt here" option in the shift+right-click context menu has been replaced by "Open Windows Powershell here" instead. Powershell does not work with the apps I...
General Support
Drive missing in "This PC" but still works fine in command prompt
This problem is usually fixed by slow solutions such as restarting my PC. But I run into this every day, so I need a better solution. I have a Buffalo NAS (network hard drive). I have to keep that at Auto-on mode because it's noisy. So everytime I...
Drivers and Hardware
[How-To] Context menu "Open elevated Command Prompt Here" without UAC
1. Create a newTask named OpenCmdHereAsAdminNoUAC and activate "Run with the highest privileges" 2. Go to the Actions Tab, create a new Action "Start a Program" choose "C:\Windows\System32\cmd.exe" and set the Working Directory (Start in) to...
Customization
How to open the "Custom sizing options" window using command line?
I want to use the command line to open the "Custom sizing options" window in Windows 10, please view the image, thank you. 99228
Customization
"Open with..." dialog command not working.
When you right click any file, you can see the Open with... dialog. When I click it, nothing happens. :( :sleepy: I kept on waiting but the Open with window is still not popping out of my screen. :chuckle: Well I tried this solution that was...
Software and Apps
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 19:21.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums