Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Using PS to run a command line executable and get the verbose output from .cmd back in PS

$
0
0

Basically I am running & $cmd $prm

$cmd = path to executable

$prm = the arguments for the exe. One of them being a verbose flag

If I run the exe with the verbose flag in cmd I get the verbose output. But for scripting, automation and variability sake I am running the command in Ps. How do I capture that verbose output and get it back into PS for further data manipulation. I would like to use it for logging purposes.

submitted by /u/cboogie
[link] [comments]

The post Using PS to run a command line executable and get the verbose output from .cmd back in PS appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles