Some ways of listing files from a folder or partition, using CMD (Command Prompt / MS-DOS).
First of all, the simplest way to access MS-DOS, for Windows XP users:
1. Click on the Start Bar (or press the key directly “windows”)
2. Click on the box “Run…”
3. I am Taste “cmd” And press the key “Enter” .
Listing files from a folder or partition.
To list files from a folder/directory use command “DIR“. Dir, displays the contents of the current folder. If the number of files in the current folder is very high and the size of the control screen is exceeded, their listing can be summarized in one page, using the command You /p . The file listing will be stopped if the page is full, the continuation being done by pressing any key. (Press any key to continue...) [I hope you don't have “Turn Off Computer”, on the keyboard! :)]. “You /p” It shows both the files in the current director and data about them. Their date and size. To ignore the Info file, the order is used DIR /P /W . List strictly the names of the files in the current folder. Listing of the content of a director in alphabetical order can be required by order: DIR /O /P . DIR /O /P /W , lists in alphabetical order, ignoring the information about files (date and size).
The listing commands, which I see the most useful are those that allow the content of the directories, in a text file and/or print.
DIR D: /W>PRN – List the printer The content of partition D: (Forest and files, Without including sub -foders and files in the folding of partition) .
Example: If we want to for the print o List with the names of songs on the partition D: in the folder My Music , MS-DOS command syntax, will be the following:
DIR D:\My Music /W>PRN
DIR > LIST.TXT = Create a .txt (text) file, which contains the names of the files in the current folder. For the example above, the command syntax is: DIR D:My Music /W> List_melodii.txt . ;)