Batch File; List files in directory, only filenames?

前端 未结 8 1394
我在风中等你
我在风中等你 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:22

    create a batch-file with the following code:

    dir %1 /b /a-d > list.txt
    

    Then drag & drop a directory on it and the files inside the directory will be listed in list.txt

提交回复
热议问题