How do I get the current game .exe directory?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mike Trevor

How do I get the current game .exe directory? for example I’d like to get:
E:\User Files\School Stuff\Evacuation App DRRR export\QR.exe
Example

:bust_in_silhouette: Reply From: njamster

Check out the answer over here.