so i want to start process with arguments but it throws me an error (no file in directory found)
heres code:
Process.Start(@"inject.exe example.dll example_process")
This is a bit modified code just for "showcase"
first argument is a dll and second one is process name
basically whole code "works" (i mean it doesnt throw errors in visual studio) but also doesnt work as it throws exception with message "file not found" or something like that
>Solution :
replace "inject.exe" with the C:\Path\To\inject.exe:
string exePath = @"C:\Path\To\inject.exe";
string arguments = "example.dll example_process";
try
{
Process.Start(exePath, arguments);
}
catch (Exception ex)
{
String Err=ex.Message;
}