I would like to know how to find out what the directory path of a running program is.
The intention being, that if I distrubute a small zipped program to some friends with a preset file and folder structure for the program to save files too, how can I get the program to find out where it has been unzipped too (because once I know the path to the .exe file I can access the folder structure unzipped with it.
I'm not sure if I've explained this right, or even if the scenario I've given is quite right, but if anyone has any ideas or thinks they might have something that is applicable to this, please let me know.