?? Anyone help me with figuring this out ??

Discussion in 'General Chat' started by lowridertj, Jan 4, 2008.

  1. #1
    I been wondering how to make a .txt document listing the files, folders in a directory on my pc (server) and was wondering how its done. There has to be an easier way then hand typing them all. Please share your thoughts.

    Thanks in advance,
    TJ
     
    lowridertj, Jan 4, 2008 IP
  2. bogart

    bogart Notable Member

    Messages:
    10,911
    Likes Received:
    509
    Best Answers:
    0
    Trophy Points:
    235
    #2
    You will need to go do the dos command prompt

    Use 'cd' to change directories i.e. form c >> cd myfolder

    then type in the following
    *.* /s/a:-d/o/b > dir.txt
     
    bogart, Jan 4, 2008 IP
  3. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #3
    C:\Documents and Settings\Owner>CD>F:\
    The system cannot find the path specified.

    C:\Documents and Settings\Owner>CD>F:\new e books>
    The syntax of the command is incorrect.


    For some reason its not wanting to work to get into that directory..
     
    lowridertj, Jan 4, 2008 IP
  4. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #4
    i figured it out thank you..

    I had to change drives then go to folder. then insert as instructed.

    thanks again.

    Greenies coming you way.

    TJ
     
    lowridertj, Jan 4, 2008 IP
  5. bogart

    bogart Notable Member

    Messages:
    10,911
    Likes Received:
    509
    Best Answers:
    0
    Trophy Points:
    235
    #5
    CD .. =Use for go up one level
    /s = subdirectory
    /a = attribute
    /a:-d = no directories
    /o = order
    /b = bare

    if you only want to find jpegs use the wild card *.jpg
     
    bogart, Jan 4, 2008 IP
  6. mybluehair

    mybluehair Peon

    Messages:
    1,374
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I think you can do something in CMD...witch i guess bograt explained. thanks. I could use this too
     
    mybluehair, Jan 4, 2008 IP
  7. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #7
    Normally when you open command prompt it shows as
    C:\Documents and Settings\Owner>

    If you need to change which drive your wanting to get a listing from you will have to put:

    C:\Documents and Settings\Owner>cd /D F:\
    **shows how to change a drive location where cd \D is to change disk and F:\ is disk your changing to.

    If you want to specify a folder there here is how to put direct path not that your inthe correct disk:
    F:\>cd F:\new e books
    **change to a folder in the drive for example above used new e books in the F:\ disk

    To create the list of files and folders in that directory here is what to put in:
    F:\new e books>DIR /s/a:-d/o/b > dir.txt
    **shows how to save file to directory with list of files as shown above by bogart -
    /s = subdirectory
    /a = attribute
    /a:-d = no directories
    /o = order
    /b = bare

    If you want to print it instead. DIR /s/a:-d/o/b > PRN


    Thanks,
    TJ
     
    lowridertj, Jan 4, 2008 IP