0

我有一个脚本。它不工作。没有用户名和密码,一切都很好。由于安全类型,logMessage 是否必须显示“1”?LogMessage 现在只显示一个“System.Security.SecureString”。

pass = new System.Security.SecureString;
pass.AppendChar("1");
LogMessage(pass);
proc = new System.Diagnostics.Process;
proc.StartInfo.Username = "temp";
proc.StartInfo.Password = pass;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.FileName = "notepad.exe";
proc.Start();
4

0 回答 0