| KyleMiles (83) | |
|
If my program is running in C:\Users\Kyle\Desktop\MyProgram\Wawa\program.exe, how do I get it to access C:\Users\Kyle\Desktop\MyProgram\Monkeys\Funny.jpg? However, the program can't know where exactly it is... As in, it could be in AppData, Programfiles... Anything... I just need to backtrack to the parent folder that it is in. Thank you for any help that you can give! - Kyle | |
|
|
|
| modoran (1101) | |
| GetModuleFileName() will give you full path to executable location. | |
|
|
|
| KyleMiles (83) | |
|
THANK YOU! - Kyle | |
|
|
|