Thread: Adding folders to multiple directories

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    4

    Question Adding folders to multiple directories

    I think this is one of my first threads, so apologies if I do anything to annoy anyone.

    I need to add a folder called "Photos" to about 4000 individual folders.

    Would a C program be an appropriate solution to speed this up, or is it unnecessarily complicated and is there a simplier plan I'm missing.

    Any help would be useful.

    Thanks

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Potentially, this is very easy. My innate wariness of a simple task like this leads me to ask for more information. Where are these 4000 folders/directories? Are they on the local machine? Are they in a simple directory tree? Are they listed in a file?

    To create a directory within another, you simply use the CreateDirectory() API routine.

    I remember answering a question very like this on another board where the basic idea was simplicity itself, but the questioner wrapped it up in an almost impossible UI.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    4

    Thanks for your help

    Thanks for your reply, although I too, once I thought about it, realised it should be simple. Plus my housemate (that is Iain for you regular users) has been recently working alot with Visual Basic and has written a solution for me. He is not impressed I mentioned his Visual Basic programming on here, so I add that he is on an industrial placement and is forced to use it.

    If you still want details of the problem just for clarification then :-

    There is about 4000 folders numbered with 4 digits, although every combination isn't present. In each I need a folder called "Photo" added (and possibly others, but that is just an extension of the main problem).

    i.e. C:\Jobs 1000 - 2000\1001
    C:\Jobs 4001 - 5000\4673 etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding MinGW Search Directories
    By Matt3000 in forum Windows Programming
    Replies: 1
    Last Post: 04-23-2007, 05:47 AM
  2. Adding folders to the Start Menu
    By Wraithan in forum Tech Board
    Replies: 7
    Last Post: 07-09-2006, 12:42 PM
  3. problem while opening files from multiple directories
    By V.G in forum Windows Programming
    Replies: 2
    Last Post: 11-08-2004, 03:29 PM
  4. Adding include directories [VS2003]
    By aker_y3k in forum C++ Programming
    Replies: 1
    Last Post: 10-24-2004, 02:41 PM
  5. mkdir and multiple directories
    By Idle in forum C Programming
    Replies: 4
    Last Post: 06-28-2003, 04:56 AM