February 23, 2025

Telugu Tech Tuts

TimeComputers.in

Computer Basics in telugu Print all the files list in a folder

Windows command line and MS-DOS users

Get to the MS-DOS prompt or the Windows command line.
Navigate to the directory you want to print the contents of. If you’re new to the command line, familiarize yourself with the cd command and the dir command.
Once in the directory you want to print the contents of, type one of the below commands.

dir > print.txt

The above command takes the list of all the files and all of the information about the files, including size, modified date, etc., and send that output to the print.txt file in the current directory.

dir /b > print.txt

This command would print only the file names and not the file information of the files in the current directory.

dir /s /b > print.txt

This command would print only the file names of the files in the current directory and any other files in the directories in the current directory.

After doing any of the above steps the print.txt file is created. Open this file in any text editor (e.g. Notepad) and print the file. You can also do this from the command prompt by typing notepad print.txt.