You can run classic cmd commands from within PowerShell and store the results in variables. All you need to do is invoke cmd.exe with the /c switch like so:
$result = cmd.exe /c dir
$result
$result
Explore all the products and find the right solution for your business
Explore all the products and find the right solution for your business
Explore all the products and find the right solution for your business
by ps1Aug 17, 2009
You can run classic cmd commands from within PowerShell and store the results in variables. All you need to do is invoke cmd.exe with the /c switch like so: