Help - Search - Members - Calendar
Full Version: Simple Listing Of Folder Contents With Notepad
Darkside_RG > Technical Discussions > Guides/How To > General
latexink
I noticed this happens alot where people submit a .torr and don't list the files contained therein, then everyone asks "what files are there in this list of 1000 books" or something similar. I did this when submitting a bunch of ROMs once, and typed the complete file list by hand. After I did that, I remembered this trick and did the facepalm thing.


Prerequisites for this tutorial:

-Microsucks Winblows Vista (don't remember if this works on older versions)
-A folder of folders or files to list that you don't want to type by hand

Alright, this is my first tut, so bear with me.

So here's the folder:



Say you want to add the list of files to an .nfo file or a forum of some kind. With the window selected, press ctrl+a to select all of the files in the folder, then shift and right click on a file that is highlighted thusly:



Take note of the new option in the list "Copy as Path" that I highlighted for you. This copies the list of files as a list of paths and filenames, but you don't want all of those filenames to have your top-secret folder hierarchy in it, do you?

So next, open a new text document on your desktop and paste the contents of your clipboard there with ctrl+v or edit>paste like so:



"Well that's not right" you say when you see all the directories before the file names you wanted. Fear not, because this is the meat of the tutorial right here. Something that helps me when i reformat subtitles and the like is the replace function of notepad. If you highlight and copy the directory like i did to the clipboard, you can either hit ctrl+h or edit>replace then you will get this dialog where you can batch the text in notepad replacing the text in the first box with the contents of the second (even if nothing is in the second box).

If you paste the directory (or any text) you want to remove from those hundred-and-however-million lines that you want to fix then hit replace all, you go from this:



To this:



You can then do the same replace function with the " at the end and take that off the end of every entry by replacing it with nothing to end up with a list of files contained in a folder that you can paste anywhere.

Now next time someone asks you which files are in the .torr you just uploaded, you can answer with more than "alot"!

I know this is kinda simplistic, but you'd be surprised the number of people who don't know this or just don't have or want an .nfo program installed. I wish I had done this instead of typing the names of a bunch of snes roms for an hour.

Happy sharing victory.gif
$ilverb@ck88
Thats nice ..

Heres a way to do that using the command promt, i tested it on a Windopws Xp, So it shud work on any windows os .. i also think it is quite less work to be done this way too..

1. Take the command Promt (Winkey + R or start -> run)
2. Type cmd and return
3. navigate to the folder that contains the files

eg :

c:>documents and settings>admin>desktop>programs>

type in this at the prompt

dir /b > filelist.txt

dir is the list directories command
/b is the bare bones option which excluydes all the additional information
> filelist.txt is the key here . instead of putting the output to the screen, it redirects to the filename specified after it

Thats it, you are all done.. smile3.gif

heres my output for the file filelist.txt

3AREA.C
3_NO_BIG.C
AMST OF ANY.C
BINARYSE.C
BUBBLE_S.C
CALCULAT.C
COSINE.C
DEC2OCT.C
DECI_BIN.C
DSC00546.JPG
DSC00547.JPG
DSC00548.JPG
FACTREC.C
FIB.C
FILECOM.C
FILEODDE.C
index1.doc
LIB2.CPP
MAT_ADD.C
MAT_MULT.C
NCRPOINT.C
PALINDRO.C
PRIME.C
ROOTS.C
SINE.C
SORTSTUD.C
STRINGSO.C
STR_PALI.C
SUM_SQUARE.C
SWAPREFE.C
TOGGLE.C
TRANSPOS.C
V_D_W_TE.C

So no need for removing the foldernames from it, of course if u want the extensions to be removed, then i guess u'll have to use the replace all as described above.

if u dont need to list any subdirectories , then a -b switch can be used ................


hope this is useful
latexink
That works too, but this was more for people that don't know the difference between a command prompt and a terminal. Some people that didn't grow up as root could benefit from knowing this stuff I think. Either way, it would be nice to see people not make the mistakes that they do and use all of this information, whether they are a terminal or GUI kinda person.

drinks.gif
$ilverb@ck88
ok mate ..

But i was thinkning that any scener who wud be about to make a release and write an .nfo file, shud be comy with the terminals ... thanks for the response ........
pengy_666
Nice little tutorial

Both of you

:p
$ilverb@ck88
QUOTE (pengy_666 @ Jan 4 2009, 09:18 AM) *
Nice little tutorial

Both of you

:p


Thanks ...............
Subconscious
nice quick and easy tut thank you drinks.gif


This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.