Thread: Working with subfolder names?

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    1

    Working with subfolder names?

    In my office, we store books in different formats (MP3, PDF, etc.) in the individual folder for that book. All of these folders have names following the same format (<ISBN>_<Title>_<Author>) and are themselves located in the same folder (Archive). Here is what I am trying to do:

    1) Read all the subfolder names in the Archive folder
    2) Separate the folder names into ISBN, Title, and name
    3) Write to an Excel file, with the data in separate columns.

    How would I go about doing this in C? I haven't programmed with it in a while, and am fairly rusty.

    ps We run Windows XP in the office

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Look up the windows api functions FindFirstFile(), FindNextFile() and FindClose()

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 03-30-2009, 04:09 AM
  2. Delete files and subfolder using c programing (Urgent
    By telukuntla in forum C Programming
    Replies: 13
    Last Post: 05-19-2008, 11:51 AM
  3. How to start program from subfolder
    By trancedeejay in forum C Programming
    Replies: 2
    Last Post: 04-01-2006, 03:39 PM
  4. Help with Names
    By big146 in forum C++ Programming
    Replies: 13
    Last Post: 06-07-2004, 01:26 PM
  5. former names...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 08-17-2001, 05:03 AM