G
Guest
Hi
Using C#, how we can get the absolute path of an exe
For example, if I have x.exe, which I want to start in some other process, How I can get the absolute path of this exe
Now I am hard coding the exe's name, I want to avoid that
snippet
string myexepath="......./x.exe"
Process p=Process.Start(myexepath)
I want to get the x.exe path through the program itself
Can anybody suggest some method for doing this
Thanks and Regards
Saty
Using C#, how we can get the absolute path of an exe
For example, if I have x.exe, which I want to start in some other process, How I can get the absolute path of this exe
Now I am hard coding the exe's name, I want to avoid that
snippet
string myexepath="......./x.exe"
Process p=Process.Start(myexepath)
I want to get the x.exe path through the program itself
Can anybody suggest some method for doing this
Thanks and Regards
Saty