Listing files via MS-DOS.

Some ways of listing the files in a folder or a partition using DCM (Command Prompt / MS-DOS).
First of all, the easiest way to access MS-DOS, for users Windows XP:
1. Click on the Start bar (or press the key "windows")
2. Click on the box "Run…"
3. Type "cmd" and press the "Enter".

Listing files in a folder or a partition.

To list files in a folder / folder use the command "DIR". DIR, displays the contents of the current folder. If the number of files in the current folder is very large and exceeds the size of the command screen, their listing can be summarized on a single page, using the command DIR / P . Listing files will be stopped if the page is full, continue being done by pressing any key. (Press any key to continue...) [I hope you don't have "Turn Off Computer" on the keyboard! :)]. "DIR / P" shows both the files in the current directory and data about them. Their date and size. To ignore file info, use the command DIR / P / W . Strictly List files in the current folder name. Listing the contents of a directory in alphabetical order may be requested by the command: DIR / A / P . DIR / A / P / W , Lists alphabetically, ignoring information about files (date and size).
Print commands, you see the most useful are those that allow you to write content directory in a text file and / or print.
DIR D: / W> PRN - list to the printer content partition D: (Folder and files, without including subfolders and files in partition folders).

Example:
If we want to print the o list of names of songs located on partition D: folder My Music , MS-DOS command syntax will be:

DIR D:\My Music /W>PRN

DIR> LIST.TXT = Make a file. Txt (text) file containing the current folder name. For the above example, the command syntax is: DIR D: \ My Music / W> lista_melodii.txt . ;)

Passionate about technology, I enjoy writing on StealthSettings.com since 2006. I have a rich experience in operating systems: macOS, Windows, and Linux, as well as in programming languages and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, PrestaShop).

How to » Tweaks & Hacks » Listing files via MS-DOS.

November Rain

Leave a Comment