如何使用C#控制台应用程序中的参数启动本地VBScript? [英] How can I launch a local VBScript with arguments from a C# console application?
本文介绍了如何使用C#控制台应用程序中的参数启动本地VBScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个用最新的.NET框架构建的C#控制台应用程序。
如何使用参数(示例)启动/启动本地.vbs文件应用程式:
C:/ my folder / import.vbsagr1 agr2
解决方案
System.Diagnostics.Process.Start(
@C:\my folder\import.vbs,
String.Format({0} {1},agr1,agr2));
I have a C# console application built with the latest .NET framework.
How can I launch/start a local .vbs file with arguments (example) from within the app:
"C:/my folder/import.vbs" agr1 agr2
解决方案System.Diagnostics.Process.Start( @"C:\my folder\import.vbs", String.Format("{0} {1}", agr1, agr2));
这篇关于如何使用C#控制台应用程序中的参数启动本地VBScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文