Types of Commands on Windows PowerShell

Q

What types of commands I can run in Windows PowerShell? Can I still run the old DOS command "DIR"?

✍: FYIcenter.com

A

Windows Powershell allows you to run the following types of commands:

1. Cmdlets (or CommandLets) - A cmdlet is a lightweight command that is used in the Windows PowerShell environment. The Windows PowerShell runtime invokes these cmdlets within the context of automation scripts that are provided at the command line. The Windows PowerShell runtime also invokes them programmatically through Windows PowerShell APIs.

2. Scripts - A script is a Windows PowerShell script file, which can be executed by the PowerShell script engine.

3. Aliases - An alias is a short name mapped to a cmdlet. The cmdlet can be executed by entering its aliases.

No, you can not run old DOS commands in Windows PowserShell anymore. But there are aliases defined to provide similar functionalities. For example, "dir" is an alias of cmdlet "Get-ChildItem" that provides similar functionalities as the old DOS command "dir".

 

Introduction of Windows PowerShell

⇒⇒Windows PowerShell Tutorials

2016-11-08, 365👍, 0💬