Hacker News new | past | comments | ask | show | jobs | submit login

In context, there's still a right answer; the absolute path used to run the process should always be right, because the Windows locks the file (I'm sure with enough effort this can be made wrong, but I'm also sure that's not trivial).

Really, this discussion just shows the question is the problem; if you're asking "what path was used the launch the process", that's easy to keep track of & always be right. If you're asking "what is the path right now to the file that launched the process", maybe that has no answer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: