Dirtree printouts?

A home for those technical problems.

Dirtree printouts?

Postby Takitothemacs » Thu May 31, 2007 1:51 pm

anyone know of any commands around these days that will allow me to print the directory tree out without having to piece it together from a load of screenshots... and in some instances even print out file lists with attriutes etc...

sure Xest will remember the days when this could be done from DOS... ;)
[SIZE="4"]Hib Pryd/Excal Retired[/SIZE]

Littlefirby Lv51 ML9 CL10 Lurishade Thunderer


[SIZE="4"]Mid Avalon - Retired [/SIZE]


Cartilage - Lv 50 Bonedancer
Tigerstripe - LV50 Mauler
Xanidiu - Shammy BB
User avatar
Takitothemacs
Savant
 
Posts: 847
Joined: Thu Feb 10, 2005 12:00 pm

Postby Xest » Thu May 31, 2007 2:27 pm

Think the closest you'll get is just dumping it to a text file using something like:

dir /s > blah.txt

Can add some other options in, /B removes all the crap and you can use /A to filter results:

dir /AD /S /B > test.txt

Will list all the directories only into test.txt with no crap for example. The /S switch is key for iterating through all subdirectories and including them in the output dump. If you need owner information you'll have to use /Q, I don't think you can get it to print further NTFS permissions like you can on *nix systems though.

If you want anything more powerful than the dir switches will allow then you'll probably have to hack together a quick and dirty Perl/Python/Windows Scripting Host script.
OFFICER XEST - PROTECTING YOU AGAINST FORUM CRIME
Image
Che Xefan, el presidente.
Xest
Savant
 
Posts: 3022
Joined: Mon Feb 07, 2005 12:00 pm

Postby Lieva » Thu May 31, 2007 4:16 pm

[quote="Takitothemacs"]
sure Xest will remember the days when this could be done from DOS... ]

I can too...
Lievaordiea x Eldritch
Peonchants x Enchanter
Hibernia
User avatar
Lieva
Savant
 
Posts: 5329
Joined: Sat Feb 05, 2005 11:00 am
Location: On the redundancy train to freedom :D

Postby Xest » Thu May 31, 2007 4:28 pm

Probably cos you're older than me :p
OFFICER XEST - PROTECTING YOU AGAINST FORUM CRIME
Image
Che Xefan, el presidente.
Xest
Savant
 
Posts: 3022
Joined: Mon Feb 07, 2005 12:00 pm


Return to Tech Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron