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
Programmer | Dude | ||||||
About him & his blog? check out here
. Currently he's updating the site, he'll return soon there with more things*
In Codeproject, he posted a blogpost
& more than couple of Tip/Tricks
, hope he'll write more soon.
Favorite techs are MVC, WCF, Mobile, HTML5, CSS3, jQuery, etc.,
His hobbies are watching movies, CP, being alone, etc., But now he's working on something*