The difference between powershell and cmd: 1. We regard the BAT script written by CMD as process-oriented, while PowerShell is object-oriented and is a script written from the user's perspective; 2. CMD can only perform basic tasks, because PowerShell is based on [.NET] object-oriented.
The operating environment of this article: Windows 7 system, Dell G3 computer.
The difference between powershell and cmd:
The most obvious difference is: we regard the BAT script written by CMD as process-oriented. To put it bluntly, you are starting from The computer executes the process to write the script. PowerShell is object-oriented and is a way to write scripts from the user's perspective.
Functionally:
CMD can only perform basic tasks and does not integrate too much. Many functions, most of which rely on third-party programs, such as the PING command, are actually a separate application, not a command of CMD itself.
PowerShell is based on .NET
object-oriented, and it has a lot of built-in commands. This makes it much more powerful than CMD in terms of functionality and performance.
It can be said that PowerShell can basically do anything that CMD can do, but CMD can do anything that PowerShell can do.
The only thing that currently makes CMD better than PowerShell is that CMD is included in all versions of Windows, including very old operating systems such as XP and 2003. To use PowerShell in XP and 2003, you need to Use the installation package to install. But this is not familiar with the technical category. It is just the current environment that has created this advantage, and in the near future, this weak advantage will no longer exist, because new versions of Windows have built-in PowerShell.
The above is the detailed content of What is the difference between powershell and cmd. For more information, please follow other related articles on the PHP Chinese website!