I've added a path to my binary (Windows) so I can access it anywhere, I'm using it with commandline arguments, but I can't figure out how to get the path where I'm calling it from.
For example, let's say I want to pass in the filename of a file in the current directory by just passing the name, not the whole path, if I can get the path from where I'm calling the program, I can just do a little magic and get the path I need.