Batch File; List files in directory, only filenames?

前端 未结 8 1485
我在风中等你
我在风中等你 2021-01-29 22:07

This is probably a very simple question, but I\'m having trouble with it. Basically, I am trying to write a Batch File and I need it to list all the files in a certain directory

8条回答
  •  爱一瞬间的悲伤
    2021-01-29 22:18

    Windows 10:

    1. open cmd

    2. change directory where you want to create text file(movie_list.txt) for the folder (d:\videos\movies)

    3. type following command

      d:\videos\movies> dir /b /a-d > movie_list.txt

提交回复
热议问题