Batch File; List files in directory, only filenames?

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

    The full command is:

    dir /b /a-d
    

    Let me break it up;

    Basically the /b is what you look for.

    /a-d will exclude the directory names.


    For more information see dir /? for other arguments that you can use with the dir command.

提交回复
热议问题