Getting name of file

Just a quick question. How can I find the name of a file? like "test.txt" or "chrome.exe"
Think about it - how would you identify a file in C++ code, if not by its name?
It is a subthread of http://www.cplusplus.com/forum/general/143199/

You can:
* search for file using OS functions (really slow)
* If that specific program stores information in registry, you can use it.
* Ask user
* Try to fiddle with Uninstall Information.
* Combine all above
just ask your question in the same thread next time.
Topic archived. No new replies allowed.