Right-Click create folder "Structure"?

Discussion in 'OT Technology' started by skitcy, Jul 23, 2007.

  1. skitcy

    skitcy uhm title! ok

    Joined:
    Jan 29, 2005
    Messages:
    1,302
    Likes Received:
    0
    Location:
    Seattle, Washington
    Anyone know if there is anything out there that you can create more than just 1 folder at a time?

    IE I can type in test\test\finalfolder

    and it will create the folder test, then the folder test inside of that and finally the folder finalfolder?
     
  2. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    Put this in a .BAT file:

    Code:
    cd [root folder name]
    mkdir [subfolder name]
    mkdir [subfolder name]\[sub-subfolder name]
    Repeat the pattern as necessary. Then run the .BAT file.

    EDIT: Alternately, "mkdir" can do exactly what you want, but only if you have something called "Command Extensions" enabled, and I have no idea how to enable it.
     
  3. peerk

    peerk New Member

    Joined:
    Mar 14, 2005
    Messages:
    984
    Likes Received:
    0
  4. kronik85

    kronik85 New Member

    Joined:
    Feb 8, 2005
    Messages:
    34,837
    Likes Received:
    0
    Location:
    Deutschland
    mkdir -p folder/folder/folder

    works in bash/ksh, dunno about window's cmd prompt
     
  5. Doc Brown

    Doc Brown Don't make me make you my hobby

    Joined:
    Mar 31, 2006
    Messages:
    16,404
    Likes Received:
    0
    Location:
    Ohio
    Weird, I tried it and it created three folders but one was by itself.
    And the other two were folder inside folder.
     
  6. kronik85

    kronik85 New Member

    Joined:
    Feb 8, 2005
    Messages:
    34,837
    Likes Received:
    0
    Location:
    Deutschland
    did you keep the "subfolder name" the same in both calls?

    and actually.. just using mkdir first\second\third\fourth will create all four folders nested inside it's parent folder without having problems. works exactly like mkdir -p first/second/third/fourth in shell.
     
  7. Doc Brown

    Doc Brown Don't make me make you my hobby

    Joined:
    Mar 31, 2006
    Messages:
    16,404
    Likes Received:
    0
    Location:
    Ohio

    I copied and pasted it from his post.

    :dunno:
     
  8. kronik85

    kronik85 New Member

    Joined:
    Feb 8, 2005
    Messages:
    34,837
    Likes Received:
    0
    Location:
    Deutschland
    just try this line


    "mkdir first\second\third\fourth"

    without quotes. that should make a single directory in the current directory named "first" and within that directory is "second, within that "third, within that "fourth".

    That's what you're trying to accomplish right?
     
  9. mace

    mace i don't read

    Joined:
    Jun 6, 2004
    Messages:
    12,567
    Likes Received:
    0
    Location:
    Texas
    Well you could do this easily by programming an extension for explorer
     
  10. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    Programming is not easy for Joe User.
     
  11. MrBrotato

    MrBrotato New Member

    Joined:
    Sep 7, 2005
    Messages:
    5,558
    Likes Received:
    0
    :rofl:
     
  12. Doc Brown

    Doc Brown Don't make me make you my hobby

    Joined:
    Mar 31, 2006
    Messages:
    16,404
    Likes Received:
    0
    Location:
    Ohio
    Well I was only curious about it, but yeah that way worked.
     

Share This Page