ドメインのネットワークドライブにあるexeファイルを実行する必要があります。ドライブは「M:\」としてPCに正常に接続されていますが、ネットワーク共有にあるプロセスを開始する場合、Process.Start(string、string ...)にはファイルへのURLパスが必要です。
これは私のコードです:
string user = "user";
string password = "Qwerty1";
string domain = "nwtraderds";
string open = "file://myshare\dir1\dir2\dir3\test.exe";
string PwString = password;
char[] PasswordChars = PwString.ToCharArray();
SecureString Password = new SecureString();
foreach (char c in PasswordChars)
Password.AppendChar(c);
System.Diagnostics.Process.Start(open, user, Password, domain);
面白いのはそれです:
System.Diagnostics.Process.Start(open);
正常に動作します。アイデアが足りなくなったのですが、誰か助けてくれませんか?