Hello,
I'm trying to figure out how to determine the relative path to the service EXE file programatically. In a normal desktop application you can simply read the Directory.GetCurrentDirectory value.
In a service, however, the relative path points to the C:\Windows\System32 directory.
Short of using a registry key, how can I point to the service EXE's execution path?
Thanks much!
I'm trying to figure out how to determine the relative path to the service EXE file programatically. In a normal desktop application you can simply read the Directory.GetCurrentDirectory value.
In a service, however, the relative path points to the C:\Windows\System32 directory.
Short of using a registry key, how can I point to the service EXE's execution path?
Thanks much!