我正在尝试将参数传递给 SysInteranls Autologon.exe 文件,但无法这样做。这是我正在使用的 C# 代码:
string usr = usrTextBox.Text.ToString();
string auto = autologon;
string domain = STORES;
string pass = password;
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.CreateNoWindow = false;
startInfo.UseShellExecute = false;
startInfo.FileName = "Autologon.exe";
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.Arguments = usr + domain + pass;
Process.Start(startInfo);
如果我设置 startInfo.Arguments = "USER DOMAIN PASSWORD"; 任何帮助将不胜感激。
托德