View Full Version : Writing the contents of a directory to a text file
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
02 July 2007, 16:00
dir > file.txt
or dir /b > file.txt
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
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.
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
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..
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!
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.