Thursday, February 26, 2009

!-! !-! Make A Directory List With The Command Prompt In Seconds


Did you ever want to send a list of all the music in your computer to someone else? How about the names of all the files in a specific directory - like My Documents? This can be easily done with the command prompt which is built into Windows. Although there are many programs out there that are able to create directory lists, using the command prompt is quick, easy, and there is no need to install a new application.

Running and Navigating in the Command Prompt

To run the command prompt, click on Start->Run and type cmd.

Notice that you are immediately placed in C:\Documents and Settings\[user] .

Navigate to the folder that you want to create a list of all files in by using the 'cd' command:

Simply type "cd\folder1\folder2\…". So if you want to get to the folder c:\MyFiles\Music you would type:


Now, just type this command:

Dir /on /b /s >list.txt

The file list.txt will be created in the directory (in this case c:\MyFiles\Music\ list.txt) and will include all the files and sub-directories that are included in the current folder. If you only want a list of the files and folders in the current folder without its sub-directories, remove the /s, to make it:

Dir /on /b >list.txt

The /on orders the lists by alphabetical name, the /b makes it only list the filename, and the /s includes subdirectories files in the list.

Of course, you can change the text file to anything you want by changing list.txt to anything.txt.

This is how the text file will look like:

You can modify this file in seconds and make it look exactly like you want it (like removing the c:\MyFiles\Music part) with your favorite text editor and the Find and Replace feature. This can be used to make lists of everything on the computer - music, documents, pictures and programs.

This whole process takes less than 30 seconds and is vital at times. Especially before a reformat.


Recent Activity:
Please forward this message to all Your Friends who will love it! If you like such messages and want to join these fun mail lists then send a blank email 

(!!~~!!~~Desi Tarka~~!!~~!!)
(!!~~!!~~Desi Tarka~~!!~~!!)
Join Us :-

You can also join the group by clicking the below link or by copying and pasting it in the browser bar and then pressing 'Enter'.

To modify your list subscription, please send a blank email to:
SUBSCRIBE            :     
UNSUBSCRIBE          :     
INDIVIDUAL MAILS     :          
DAILY DIGEST         :          
VACATION HOLD        :    



Post a Comment

Related Posts Plugin for WordPress, Blogger...


Twitter Delicious Facebook Digg Stumbleupon Favorites More