【发布时间】:2026-02-14 04:00:01
【问题描述】:
我想使用 cscript.exe 运行 vbscript 文件。 我搜索了很多,但没有找到任何方法,而我可以使用 cmd 和 cscript.exe 运行我的脚本
这是我的代码
Process p = new Process();
p.StartInfo.Arguments = @"C:\\Program Files\\VDIWorkLoad\\WorkLoadFile\\open test.vbs";
p.StartInfo.FileName = "testing";
p.StartInfo.UseShellExecute = false;
try
{
p.Start();
p.WaitForExit();
Console.WriteLine("Done.");
}
知道如何使用 cscript.exe
【问题讨论】:
标签: c# .net process.start wsh