Adding folders to multiple directories

This is a discussion on Adding folders to multiple directories within the Windows Programming forums, part of the Platform Specific Boards category; I think this is one of my first threads, so apologies if I do anything to annoy anyone. I need ...

  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,831
    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, 06:47 AM
  2. Adding folders to the Start Menu
    By Wraithan in forum Tech Board
    Replies: 7
    Last Post: 07-09-2006, 01: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, 03:41 PM
  5. mkdir and multiple directories
    By Idle in forum C Programming
    Replies: 4
    Last Post: 06-28-2003, 05:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21