i am trying to hide two file in my flash drive through cmd command that are being executed in c# windows form here is the code:
Java
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();i have also tried this one
Code
System.Diagnostics.Process.Start("cmd", "attrib +s +h G:\\autorun.inf");But i does not work.
Please tell me what i need to do to hide the file
Thanks in advance

VulpesRank #55 · 29.2K reputationPosted Nov 11, 2012, 5:51 AM EST