autorun not working?
it shows up in the startup tab in the task manager but i can't open the file's location, it doesn't start on startup
var currentAssembly = System.AppContext.BaseDirectory;
string sourceFile = Path.Combine(currentAssembly, System.Environment.ProcessPath);
//Console.WriteLine(sourceFile);
string destPath = string.Format(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\zeusBOT" + "zeus.exe");
File.Copy(sourceFile, destPath, true);
RegistryKey reg = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
reg.SetValue("zeus", destPath.ToString() + " %bot");
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = System.Environment.ProcessPath;
process.StartInfo.Arguments = "-bot";
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
process.StartInfo.UseShellExecute = true;
process.Start();
process.WaitForExit();var currentAssembly = System.AppContext.BaseDirectory;
string sourceFile = Path.Combine(currentAssembly, System.Environment.ProcessPath);
//Console.WriteLine(sourceFile);
string destPath = string.Format(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\zeusBOT" + "zeus.exe");
File.Copy(sourceFile, destPath, true);
RegistryKey reg = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
reg.SetValue("zeus", destPath.ToString() + " %bot");
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = System.Environment.ProcessPath;
process.StartInfo.Arguments = "-bot";
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
process.StartInfo.UseShellExecute = true;
process.Start();
process.WaitForExit();