View Full Version : Writing the contents of a directory to a text file
Shoonay
02 July 2007, 15:48
This is probably in the wrong forum since it's a windows tool I'm after, but I've placed it here so people having the offtopic banned would see it too... ;)
Feel free to trash it, but please mods, *after* I'll get me a proper tool! :D
So, the main question is, how do I easly write the directories/files contents tree to a file?
Preferably to a text file, so it'll be easly viewable and small.
I'm asking this cause I've just got a huge amount of scene stuff, so I'm in the middle of sorting all this and packing, for a torrent upload on U-G. :cool
http://eab.abime.net/showthread.php?t=29814 ?
Belgarath
02 July 2007, 16:00
dir > file.txt
or dir /b > file.txt
etc
in wondows XP its quite simple
type in the directory you want as root
c:\myfilesroot\ tree > [file loaction:\filename]
this will output directory structure from the called position and outputs the file as a ascii file
Shoonay
02 July 2007, 16:04
Is it just me or does it only write the contents of the directory I'm currently in?
Cause I want it to list all the directiories/files inside directiories/files, too.
Retro-Nerd
02 July 2007, 16:08
I use the Total Commander for this. Check the buttons in the Top Bar. You can add a command to them.
Configurations --> Buttonbar
http://www.imagenetz.de/f871574f4/TC-Commandjpg.jpg (http://www.imagenetz.de)
Belgarath
02 July 2007, 16:12
dir /s will list all dirs and files in a subdir (don't you know anything about dos shoonay?)
It won't list files in files though..
Shoonay
02 July 2007, 16:20
@R-N: Thanks, I'd rather stick with SpeedCommander ;)
@Belg: Of course I don't, I'm an Amiga user :p
No, but really I did mess with dos to run old games back in 1999 when I got me first pc with win'98, but only knew hot to prep a boot disk, save memory and move between dirs.
BTW, Thankyou, that worked!
rsn8887
02 July 2007, 17:55
Try Directory Opus for Windows by GP Software. While it is expensive as hell, it has extensive capability to output directories to .txt with lots of formatting options etc., amongst a plethora of other ingenious functions. It is simply the mother of all file-managers!
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.