New
#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?
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?
Interesting. You do know that you can do anything in a powershell prompt that you can in command prompt, right?
Just trying something like
for %i in ("*.mp4") do echo "%~ni"
returns an error.
I don't wanna learn a new language.
If you like, you could add it back to the context menu.
Open command window here - Add in Windows 10 - Windows 10 Customization Tutorials
Open command window here as administrator - Add in Windows 10 - Windows 10 Customization Tutorials
Thank you. Better than nothing I guess.
...and on the Win+X menu (or right-click on Start).
Show Command Prompt or Windows PowerShell on Win+X menu in Windows 10
@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.
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.
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
toCode:powershell.exe -noexit -command Set-Location '%V'
It will still say “Open Windows PowerShell” though.Code:cmd.exe /s /k pushd "%V"
But as the best work around to this problem, I encourage any one reading this to pick up the newer language.
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
translates to following in PowerShellCode:for %i in ("*.mp4") do echo "%~ni"
It’s longer than the command prompt command in its verbose form, but it can also be written in short form asCode:Get-ChildItem -Path '*.mp4' | ForEach-Object -MemberName BaseName | Out-Default
Additionally, it is expected you’d use tab completion and never fully type out commands.Code:ls *.mp4 | % BaseName
Last edited by Pyprohly; 30 Apr 2017 at 01:57.