Batch File; List files in directory, only filenames?

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

    dir /s/d/a:-d "folderpath*.*" > file.txt

    And, lose the /s if you do not need files from subfolders

提交回复
热议问题