Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Discussions
Off Topic
Printing a file list from a certain directory
jescab
Is there a way to print the names of the files and folders that are located in a specific folder/directory?
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
sprkymrk
Yes, from a command prompt use the dir >> file.txt command. Probably want to include the /S for subdirectories. So to list all the files and folders in the entire C:\windows directory and save it to a file in the c:\temp directory called file-list.txt:
CD to your C:\Windows folder and type:
dir /S >> c:\temp\file-list.txt
jescab
Perfect thanx.........
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS