質問編集履歴
1
typo修正 (standart → standard)
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
Verb = "RunAs",
|
31
31
|
UseShellExecute = false,
|
32
32
|
FileName = "cmd.exe",
|
33
|
-
|
33
|
+
RedirectStandardInput = true,
|
34
34
|
};
|
35
35
|
Process proc = Process.Start(procInfo);
|
36
36
|
proc.StandardInput.WriteLine("echo \"ログオフ\"");
|