Printing a file list from a certain directory

jescabjescab Inactive Imported Users Posts: 1,321
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

  • sprkymrksprkymrk 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.txt
    All things are possible, only believe.
  • jescabjescab Inactive Imported Users Posts: 1,321
    Perfect thanx.........
    GO STEELERS GO - STEELERS RULE
Sign In or Register to comment.