Sometimes we want to print the list of files in a directory. Example: Print the songs list in a CD/DVD.
In DOS, using
command(with additional parameters), we can achieve this thing.
To print the files list:
dir /b > prn
To save the list as a file:
dir /b > filename.txt
dir - Command
/b - Parameter. For bare format (Displays only file names. No heading information or summary).
Now I'm executing this command in C Drive (on my system):
C:\> dir /b > CDriveFiles.txt
Now open the file
to view the contents:
Documents and Settings
Using other parameters of
command, you can change the output.
DOS Command: DIR
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.