Live data from Hacker News

Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

news.softpedia.com

1–10 of 350 posts

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#6
post #3

"Typing cmd in the run dialog will launch PowerShell as well" What? I'm a big PowerShell fan, but I see the need to keep cmd around for a while. Clobbering it before it's phased out seems problematic.

You can run any command from CMD in Powershell

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#8
post #4

I'm probably wrong, but can you not type "ps" into CMD and get the PowerShell prompt? If so, can you do it the other way around as well?

you can run "powershell" from a CMD prompt and "cmd" from a powershell prompt.

You can also nest prompts to switch context between them.

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#9

So, while I applaud this, I am concerned about the startup time of ps as compared to the old command prompt. Has it been improved recently?

Funny, that was my first thought as well. Sometimes I start cmd.exe instead of powershell on rotating-disk machines because of the startup time. On SSDs I find the startup time is negligible.

Re: Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build

#10
post #7

So, while I applaud this, I am concerned about the startup time of ps as compared to the old command prompt. Has it been improved recently?

It's better but it's still slower than CMD on my computers.

In particular if you have left the prompt window untouched for a few hours and it has been paged out. Just pressing to complete a file name will hang for 3-6 seconds on my computer while PS wakes back up.

CMD is always instantaneous.

I realize that PS is doing a lot more work to match commands but sometimes simple is all that is needed.

Post reply on HN