System.Diagnostics.Process process1 = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo1 = new System.Diagnostics.ProcessStartInfo(); startInfo1.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; startInfo1.FileName = "cmd.exe"; startInfo1.Arguments = "attrib +s +h G:\\autorun.inf"; process1.StartInfo = startInfo1; process1.Start();
System.Diagnostics.Process.Start("cmd", "attrib +s +h G:\\autorun.inf");