Thread: Reading filenames and creating folders

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    39

    Reading filenames and creating folders

    Hey I was just wondering how I could read the filename of a folder or mp3. I want to be able to search the filename for a special character. Then create a folder unless folder already exist then just copy mp3 to the folder. TIA. Just needs some basic tips on where to get started with this.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    CreateDirectory()

    Not sure what you mean by "read the filename". If you mean enumerate all files/directories at a location, check out FindFirstFile() and FindNextFile().
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed