1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

mkdir folders are created and disappear

Discussion in 'Windows XP' started by seadoorich, 2008/11/06.

  1. 2008/11/06
    seadoorich

    seadoorich Inactive Thread Starter

    Joined:
    2008/11/06
    Messages:
    2
    Likes Received:
    0
    I am trying to use mkdir / md to create a folder tree in windows. I need to automate this that is why I am using md.
    I run the command everything works the dir structure is there for about 1 minute and then it disappears.
    I am using xp pro with sp2
    thanks for any help
    rich
     
  2. 2008/11/07
    Steve R Jones

    Steve R Jones SuperGeek Staff

    Joined:
    2001/12/30
    Messages:
    12,317
    Likes Received:
    252
    Welcome to WindowsBBS;)

    Generally, when you go to a command prompt you are taken to->

    C:\Documents and Settings\YourUserName>

    Are you making the new folders there or are you changing directories to the desired location first?
     

  3. to hide this advert.

  4. 2008/11/07
    seadoorich

    seadoorich Inactive Thread Starter

    Joined:
    2008/11/06
    Messages:
    2
    Likes Received:
    0
    Yes but in the command I always start at the root.
    Here is what I am trying to do.
    md c:\progra~1\testdir\2ndtest\3rdtest\4th
    I run this at a command prompt with no errors and i watch in windows explorer. I see the directories get created but a short time later they are removed some how.
     
  5. 2008/11/07
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    MD will not create multiple directories, you need to create each individually, eg

    MD C:\PROGRA~1\TESTDIR
    MD C:\PROGRA~1\TESTDIR\2NDTEST
    MD C:\PROGRA~1\TESTDIR\2NDTEST\3RDTEST
    MD C:\PROGRA~1\TESTDIR\2NDTEST\3RDTEST\4TH

    I'm not sure how this is possible unless you had already created the directories individually.:confused:

    EDIT:Ignore all of the above, seems the directory commands in windows XP are a big improvement from the old DOS days;), my apologies
     
    Last edited: 2008/11/07
  6. 2008/11/07
    Steve R Jones

    Steve R Jones SuperGeek Staff

    Joined:
    2001/12/30
    Messages:
    12,317
    Likes Received:
    252
    After you run the command, can you change to the directory from the command prompt?

    Might try testing the creation of the directories from the root of C.
     
  7. 2008/11/07
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    I can only suggest you check your (3rd party) security software. The command works fine "as is ". No need to change directories first either.

    I tested it under XP Home SP2. CMD opened under \Documents and Settings\Arie. All directories where successfully created C:\Program Files\testdir\2ndtest\3rdtest\4th.
     
    Arie,
    #6

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.