Printing a file list from a certain directory
Is there a way to print the names of the files and folders that are located in a specific folder/directory?
GO STEELERS GO - STEELERS RULE
Comments
-
sprkymrk Member Posts: 4,884 ■■■□□□□□□□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.txtAll things are possible, only believe.