C
C#2mo ago
natxnek

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();
3 Replies
MODiX
MODiX2mo ago
In case you're making a cheat, there's a specific channel for that, it's not listed on purpose though, You need to open a request in #report-a-problem and ask to get access to the Cheat channel, this will eventually be granted in the next minutes / hours
natxnek
natxnek2mo ago
huh it's a discord bot
canton7
canton72mo ago
So your bot is at the path <Desktop>\zeusBOTzeus.exe? (I think you forget a \. But, use Path.Join instead of manually adding \s)
Want results from more Discord servers?
Add your server