Hi people,
I am having issues with my Hide a file code I am using cmd to hide the file and the arguments for when cmd runs are not running? any help would be greatly appreciated
Obviously the wait till H is done is temporary :LCode:Console.Out.WriteLine("Please enter a url of a file (e.g. ThisFile):"); string theFile = Console.In.ReadLine(); Console.Out.WriteLine("If you would like to hide the file press H else press S:"); string theKey = Console.In.ReadLine(); if (theFile == "") { Console.Clear(); Console.Out.WriteLine("ERROR: Please enter a file to work with..."); Console.ReadLine(); } else if (theKey == "") { Console.Clear(); Console.Out.WriteLine("ERROR: Please enter an operation to carry out..."); Console.ReadLine(); } else { System.Diagnostics.Process proc = new System.Diagnostics.Process(); if (theKey == "H") { string theCommand = ("attrib -s +h -r " + theFile); ExecuteCmdexe = new ExecuteCmd(); } else if (theKey == "S") { Console.Out.WriteLine("wait until H is done..."); }