Urgent DOS question for oldies!

Discussion in 'PC and I.T support/Advice posts' started by Gollom, Aug 7, 2008.

  1. Gollom

    Gollom Hardcore MB Enthusiast

    Messages:
    4,053
    Joined:
    May 10, 2006
    Location:
    Preston, Lancs
    Car:
    S211 E220CDi AvantGarde, NTG 2.5 with Linguatronic
    Can anybody remember the old DOS command which allowed me to direct a directory structure into a text file?

    Was it something like more ¦ list.txt
     
  2. W210 Fan

    W210 Fan Hardcore MB Enthusiast

    Messages:
    1,434
    Joined:
    Nov 16, 2005
    Location:
    Godalming
    Car:
    W140 S500L W208 430
    tree - visual directory structure
    You often need to take prints of your physical directory structure but XP has no simple "visual" commands for printing directory contents. Here, try the Tree DOS command and redirect the output to a text file.

    tree > mydirectory.txt
    print mydirectory.txt
     
  3. purplegoddess

    purplegoddess Hardcore MB Enthusiast

    Messages:
    617
    Joined:
    Mar 25, 2007
    Location:
    With Jpskiller
    Car:
    89' 190e (Leo)
    nope but ring paul he just may well know;)
     
  4. Ted

    Ted MB Club Veteran

    Messages:
    5,593
    Joined:
    Feb 26, 2004
    Location:
    Bourton on Dunsmore
    Car:
    SLC 250D AMG Line, Yamaha XVS 1100, Jeep Renegade
    try 'dir > filename'

    oops - I think 210 fan has the right answer (if you need all directories)
     
  5. OP
    OP
    Gollom

    Gollom Hardcore MB Enthusiast

    Messages:
    4,053
    Joined:
    May 10, 2006
    Location:
    Preston, Lancs
    Car:
    S211 E220CDi AvantGarde, NTG 2.5 with Linguatronic
    Remembered - used what Ted said but with /s

    Thanks all!
     
    Last edited: Aug 7, 2008
  6. OP
    OP
    Gollom

    Gollom Hardcore MB Enthusiast

    Messages:
    4,053
    Joined:
    May 10, 2006
    Location:
    Preston, Lancs
    Car:
    S211 E220CDi AvantGarde, NTG 2.5 with Linguatronic

    But this gives a better result

    Addded /f to include all files in the directory

    tree /f >myfile.txt

    What a forum!
     
  7. Ted

    Ted MB Club Veteran

    Messages:
    5,593
    Joined:
    Feb 26, 2004
    Location:
    Bourton on Dunsmore
    Car:
    SLC 250D AMG Line, Yamaha XVS 1100, Jeep Renegade
    > is the redirect symbol which will redirect standard output to somewhere else (usually a file)

    | is the pipe symbol which 'pipes' output from one command into another so 'dir' (or in unix) 'ls | more' will take the output fro lhe dir/ls command and put it to the more (paging) command.
     
  8. High-Lo

    High-Lo Hardcore MB Enthusiast

    Messages:
    1,798
    Joined:
    Sep 7, 2004
    Location:
    Kent
    Car:
    2013 X166 Mercedes GL350, Porsche 911 Carrera 4 Cabriolet, Porsche 968 Cabriolet
    Would have loved to have seen this earlier. I am still a heavy user of DOS :eek:
     
  9. Dieselman

    Dieselman Banned

    Messages:
    34,206
    Joined:
    Jul 13, 2003
    Car:
    Peugeot 403 Convertible
    Thank goodness for Technical Engineers to help out when Sales get stuck...;) ;) :p :D
     
  10. W210 Fan

    W210 Fan Hardcore MB Enthusiast

    Messages:
    1,434
    Joined:
    Nov 16, 2005
    Location:
    Godalming
    Car:
    W140 S500L W208 430
    :D
     

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.