System.Diagnostics.ProcessStartInfo proc_sg = new System.Diagnostics.ProcessStartInfo(); proc_sg.FileName ="filename.exe"; proc_sg.CreateNoWindow= true ; proc_sg.UserName = txt_user.Text.ToString();; proc_sg.UseShellExecute =false true; proc_sg.Verb = "runas"; SecureString pwd = new SecureString(); string p2 = txt_pass.Text.ToString(); foreach (char item in p2 ) { pwd.AppendChar(item); } pwd.MakeReadOnly();*/ proc_sg.WorkingDirectory = "\\\\ip_remote pc\\folder"; proc_sg.WindowStyle = ProcessWindowStyle.Maximized; Process.Start(proc_sg);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)