This commit is contained in:
Caiyanpeng committed 2021-10-08 15:22:20 +08:00
1 parent d035361718
commit 6d1bc8e2c8
5 files changed
+20 -9

No files matched your search

+2 -1
View File
@@ -462,13 +462,14 @@ namespace Assets.Scripts
/*文本框/下拉框错误*/
public static void ExecFile(string path)
public static void ExecFile(string path,string args = "")
{
System.Diagnostics.Process proc = null;
try
{
proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = path;
proc.StartInfo.Arguments = args;
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.Verb = "runas";
proc.Start();