C# Process - Disable User Account Control prompt?
问题 Question Background: I am calling a batch file to run a specified dll against the MSTest.exe through the use of a Process object. The code: I want to ensure that at all times this process is run with elevated administrator permissions. I do this currently by setting the process verb property to runas , as shown: try { _process.StartInfo.Verb = "runas"; _process.StartInfo.CreateNoWindow = true; _process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; _process.StartInfo.Arguments =