Wednesday, 24 April 2013

COPY ALL FILE NAMES FROM A DIRECTORY !!!

  • Open CMD by typing cmd in RUN (ctrl+r).
  • Go to the directory that where ur files are placed by using CD command(cd dirname).
  • Then type " dir /b /o:n > g:mega.txt ".
  • Press enter.Done.
  • The file names will be stored in a text file called "mega" in "G" drive.
  • If u want the sub directory file names also means,
  • Then type " dir /b /o:n /s > g:mega.txt ".


[ here,

dir - directory
/b  - bare format
/o:n- Order by Name
/s  - Sub directory ]

No comments:

Post a Comment