cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Getting name of file
Getting name of file
Sep 25, 2014 at 8:00am UTC
p33n kenan
(41)
Just a quick question. How can I find the name of a file? like "test.txt" or "chrome.exe"
Sep 25, 2014 at 10:49am UTC
MikeyBoy
(5631)
Think about it - how would you identify a file in C++ code, if not by its name?
Sep 25, 2014 at 11:00am UTC
MiiNiPaa
(8886)
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
Sep 25, 2014 at 8:06pm UTC
jasonwynn10
(412)
just ask your question in the same thread next time.
Topic archived. No new replies allowed.