Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void CreatePorts(string command, bool ports)
- {
- Process p = new Process();
- p.StartInfo.WorkingDirectory = (Application.StartupPath + @"com0com");
- p.StartInfo.FileName = @"setupc.exe";
- p.StartInfo.UseShellExecute = false;
- p.StartInfo.RedirectStandardOutput = true;
- p.StartInfo.RedirectStandardInput = true;
- p.StartInfo.LoadUserProfile = true;
- p.StartInfo.Verb = @"runas";
- p.StartInfo.CreateNoWindow = true;
- p.StartInfo.Arguments = " " + command;
- p.Start();
- }
Add Comment
Please, Sign In to add comment