Sat Oct 30, 2010 02:42
What is a Directory Print/Folder Print?
It lists all the crap you have in a folder. Usually it just types it out in the command prompt, but thats useless. The code below exports it into a text file.
Why would I want this?
I have 3 external hard drives full of movies. I like to compile a big list of everything that I have. It's also nice for TV Eps, Appz, Porn, Whatever, or even all of them combined. The lists are automatically alphabetized. (Thats what the "| sort >" command is for.)
-Right click on your desktop and click "New".
-Now Select "Text Document".
-Rename it to "dirprint.bat". (Without Quotes Of Course)
-Now that it's a batch (bat) file, Right click on it and hit edit. It should open our new file with notepad.
-Copy and paste one of the sets of code into it from the bottom.
-Modify it as you need, and save it. (File > Save)
-Now run the file by double clicking on it.
-It should make a new file on your desktop called dir.txt. If you want it named differently, change it in the code.
Obviously, you need to change the Drive Letters and Folder names to match yours correctly. I always loved batch files because they are so convenient with no software to install. I always found them somewhat confusing to new comers. Hopefully this helps someone with simple noob batch.
If you just have one location where everything you want to print to a text file is in, than pick the single folder code along with the correct OS. If you have your goodies spread across multiple folders or hard drives, pick the Multiple folder method. It's not limited to two, you can have it print 100 different folders if you life. Just keep adding a + [DriveLetter:]Folder_Location.
Single Folder Print XP:
dir J:\Movies /B | sort > C:\Documents and Settings\Your_Windows_UserName_Here\Desktop\dir.txt
Single Folder Print Vista:
dir J:\Movies /B | sort > C:\Users\Your_Windows_UserName_Here\Desktop\dir.txt
Multiple Folder Print XP:
dir J:\Movies + I:\Movies /B | sort > C:\Documents and Settings\Your_Windows_UserName_Here\Desktop\dir.txt
Multiple Folder Print Vista:
dir J:\Movies + I:\Movies /B | sort > C:\Users\Your_Windows_UserName_Here\Desktop\dir.txt