Dirtree printouts?

A home for those technical problems.
Post Reply
User avatar
Takitothemacs
Emerald Rider
Posts: 876
Joined: Thu Feb 10, 2005 12:00 pm

Dirtree printouts?

Post by Takitothemacs »

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... ;)
Hib Pryd/Excal Retired
Littlefirby Lv51 ML9 CL10 Lurishade Thunderer

Mid Avalon - Retired
Cartilage - Lv 50 Bonedancer
Tigerstripe - LV50 Mauler
Xanidiu - Shammy BB

Xest
Emerald Rider
Posts: 3166
Joined: Mon Feb 07, 2005 12:00 pm

Post by Xest »

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.

User avatar
Lieva
Emerald Rider
Posts: 5689
Joined: Sat Feb 05, 2005 11:00 am
Location: On the redundancy train to freedom :D
Contact:

Post by Lieva »

[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

Xest
Emerald Rider
Posts: 3166
Joined: Mon Feb 07, 2005 12:00 pm

Post by Xest »

Probably cos you're older than me :p
OFFICER XEST - PROTECTING YOU AGAINST FORUM CRIME
Image
Che Xefan, el presidente.

Post Reply

Return to “Tech Help”