Powershell: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "== Tips == === Measure execution time of a command === <source lang="powershell"> Measure-Command { dir } Measure-Command { choco list } </source>")
 
Line 3: Line 3:
<source lang="powershell">
<source lang="powershell">
Measure-Command { dir }
Measure-Command { dir }
Measure-Command { dir | Out-default} # To get output
Measure-Command { choco list }
Measure-Command { choco list }
</source>
</source>

Revision as of 16:09, 3 February 2022

Tips

Measure execution time of a command

Measure-Command { dir }
Measure-Command { dir | Out-default}   # To get output
Measure-Command { choco list }