Generate text file of all items in a folder in Windows 10 @JFLHV
Generate text file of all items in a folder in Windows 10  @JFLHV
Uploaded February 2019 | Updated September 2026, 1 week ago
Using the cmd prompt in Windows to create a text file of all items in a folder i.e: C:\Program Files

#windowstips

Read from specified path and save to current directory
dir /s /b “C:\Program Files” greaterthanarrow filename.txt

Save to specified path.
dir /s /b “C:\Program Files” greaterthanarrow “E:\My Info\filename.txt”

Read from current directory
dir /s greaterthanarrow filename.txt

Show summary and header info
dir /s “C:\Program Files” greaterthanarrow filename.txt

Show only files using the attribute option /a
dir /s /b /a:-d “C:\Program Files” greaterthanarrow filename.txt
Generate text file of all items in a folder in Windows 10321 countdown green screen with soundBirthday reminders on Google PixelVB.NET - Automate desktop apps with Sendkeys and Win32 functionsVB.NET - Animated passive notification in WinformsC# - WPF .NET app in VS CodeiMovie - Video inside text effect10 basic shapes animated green screenParking spot Google Maps AndroidScan text from camera on Google Pixel.NET MAUI to Android Emulator from command lineC# - Round WPF control corners using default template
JFLHV |

Generate text file of all items in a folder in Windows 10

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER