File Management

Jul 28, 2011 at 9:45am
What I would like to know is how to use C++ to manage a directory and the files in the directory. I would like to have it create folders based on a specified criteria and move all files that meet a specified criteria to the folder. My knowledge in C++ is pretty minimal right but I catch on quick and I understand what I'm looking at. My use for this is when I download music I want it to identify the artist > create a folder with the artist's name > move files to the folder. I also want to make it more advanced later on where it searches all the folders and sorta reorginizes it.

IDK if it makes a difference but I use Windows 7 x64.
Last edited on Jul 28, 2011 at 9:46am
Jul 28, 2011 at 3:10pm
you must ask your question in windows programming :
some of function is
CreateDirectory
MoveFile
...
and if you want enumeration your file you must use
FindFirstFile
FindNextFile

and other function that you need them
Jul 29, 2011 at 4:35am
Thanks, I'll repost in the windows forum.
Topic archived. No new replies allowed.