【文件属性】:
文件名称:simple-exec:。一个运行外部命令的.NET库
文件大小:34KB
文件格式:ZIP
更新时间:2021-05-13 21:32:56
C#
SimpleExec
SimpleExec是运行外部命令的。 它包装了 ,使事情变得更容易。
SimpleExec有意不调用系统外壳程序。
该命令将回显到标准错误(stderr),以提高可见性。
平台支持: 。
快速开始
using static SimpleExec . Command ;
Run ( " foo.exe " , " arg1 arg2 " );
原料药
跑步
Run ( " foo.exe " );
Run ( " foo.exe " , " arg1 arg2 " , " my-working-directory " );
await RunAsync ("foo.exe");
await RunAsync ("foo.exe", " arg1 arg2 ", "my-working-directory");
读
var output1 = Re