コード例 #1
0
 void ExecutePowerShellScript(string file)
 {
     ProcessHelp.Execute("powershell.exe", "-NoLogo -NoExit -ExecutionPolicy Bypass -File \"" + file + "\"");
 }
コード例 #2
0
 void ShowEnvVarEditor_Click(object sender, RoutedEventArgs e)
 {
     ProcessHelp.Execute("rundll32.exe", "sysdm.cpl,EditEnvironmentVariables");
 }