C Sharp
Compiling and Running Code
class Cmdexec {
static void Main(){
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = " /c echo 'fire' > C:\\Users\\<username>\\Desktop\\cs-file";
process.StartInfo = startInfo;
process.Start();
}
}Last updated