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

Page 2 of 2 FirstFirst 12

  1. Posts : 41,460
    windows 10 professional version 1607 build 14393.969 64 bit
       #11

    Is the goal to have the quickest link to powershell? Consider pinning the icon to the task bar like browsers, file explorer etc.
      My Computer


  2. Posts : 56,825
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #12

    Mystere said:
    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.
    Thanks for emphasizing what I posted in #8.
      My Computers


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

    Pyprohly said:
    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.
    ...
    Additionally, it is expected you’d use tab completion and never fully type out commands.
    I suspect that you are correct. :)

    When I was studying W2K8, we did some PowerShell exercises.
    In one of the exercises, we had to add a new user/password/group to AD and the PS command was enormous.

    Verbose is good in scripts, because it:
    • Doesn't matter how long it takes type it in correctly
    • Makes it easier to figure out what the script does at a later date


    I copy complicated CLI commands from the web examples (in both Linux & Windows) when I need to use them.

    I wouldn't have guessed that those two PS commands were identical (if you hadn't made it obvious that they were). :)
      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 23:27.
Find Us




Windows 10 Forums