暂存
This commit is contained in:
1 parent
d035361718
commit
6d1bc8e2c8
5 files changed
+20
-9
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user