Hi guys. Still makeing my proxy and now i need somehow load conquer. When i try run conquer with blacknull argument in shortcut everything is fine but cant make it with CreateProcess(). Or maybe some1 can pm me how can i run Conquer directly ?
Process MyProcess = Process.Start(Path + @"\Conquer.exe", "blacknull");
Directory.SetCurrentDirectory(Path);
string InitialPath = Directory.GetCurrentDirectory(); Directory.SetCurrentDirectory(Path); Process MyProcess = Process.Start(Path + @"\Conquer.exe", "blacknull"); Directory.SetCurrentDirectory(InitialPath);
I think he's using C++, or else he wouldn't want to use create process anyways :pQuote:
Or just define
Could just directly run it ofcourse without defining any variable for it, but incase you want to use the Process later to for example inject a .dll into it it's good.Code:Process MyProcess = Process.Start(Path + @"\Conquer.exe", "blacknull");
Before you do that though you have to make sure you set the current directory to the Path Directory else it wont run.
Example
And after you have ran the process make sure to revert back the current directory to the initial.Code:Directory.SetCurrentDirectory(Path);
An whole example would be
Code:string InitialPath = Directory.GetCurrentDirectory(); Directory.SetCurrentDirectory(Path); Process MyProcess = Process.Start(Path + @"\Conquer.exe", "blacknull"); Directory.SetCurrentDirectory(InitialPath);
CreateProcess(ConquerPath, " blacknull", 0, 0, False, 0, 0, WorkingDirectory, StartupInfo, ProcessInfo)
Thx u bro. Yeah i just need WorkingDirectory parameterQuote:
If you're creating the process like this, make sure that you set the "WorkingDirectory" parameter to your Conquer.exe's location and also make sure you add a space in the "blacknull" parameter (like shown in the above example)Code:CreateProcess(ConquerPath, " blacknull", 0, 0, False, 0, 0, WorkingDirectory, StartupInfo, ProcessInfo)