I am running a process in C #, but I want to be able to do this without specifying a path. Where can I put an executable in a project so that the code detects that it does not indicate the path?
At the moment I have:
ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = @"C:\Docs\wkhtmltopdf.exe";
Which works fine, but I would like it to end:
ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = "wkhtmltopdf.exe";
I tried to place the EXE in a folder in the project, in the root of the project, in the bin
folder of the project - all to no avail.
Philip wade
source share