• Can every command that runs in CMD also run in Powershell?

    From micky@21:1/5 to All on Sat Jun 28 23:13:49 2025
    Can PowerShell do everything CMD can do?

    Can every command that runs in CMD also run in Powershell?

    Was this just as true in win10 as in win11, and vice versa?

    I've googled and the articles talk about differences, but not about similarities.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to micky on Sun Jun 29 11:14:19 2025
    On Sat, 6/28/2025 11:13 PM, micky wrote:
    Can PowerShell do everything CMD can do?

    Can every command that runs in CMD also run in Powershell?

    Was this just as true in win10 as in win11, and vice versa?

    I've googled and the articles talk about differences, but not about similarities.


    https://ss64.com/ps/

    # The Command Prompt lists, always have bizarre formatting.

    https://www.lifewire.com/list-of-command-prompt-commands-4092302

    Nothing says, that shells need to have exactly the same objectives.
    Some shells are written by people with a degree in Language Design.
    Other shells are written as hacks.

    when I have seen cheat sheets, with five columns for the
    five different shells, and what the equivalent command is,
    there are always "holes" in the cheat sheet. Some shell
    not having a direct equivalent to the others.

    One thing you should know, is language designers *never* start
    with an objective of xerox copying someone elses work. They
    show their notion of "Taste" by missing out items they don't like.
    If a construct is ugly, they don't have to copy it and make
    a fake one (which is also ugly). And normally, if you asked
    the designer why "X is missing", the designer will tell you
    exactly how ugly the thing you want is.

    They don't always feel a responsibility to support direct
    one-to-one transcoding.

    *******

    https://en.wikipedia.org/wiki/PowerShell

    Paradigm: Imperative, pipeline, object-oriented, functional and reflective

    That one line tells you exactly what you need to know.
    When they drink tea, their pinky finger rises into the air.

    Given enough time, they will make cmdlets for everything.
    Or, the staff will be shackled together, and work in
    the AI salt mines instead :-)

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)