📜  获取目录中文件的名称 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:39.835000             🧑  作者: Mango

代码示例1
In MS Windows it works like this:
     1 - Hold the "Shift" key, right-click the folder containing the files 
    and select "Open Command Window Here."
    2 - Type "dir /b > filenames.txt" (without quotation marks) in the 
    Command Window. ...
    3 - Inside the folder there should now be a file filenames.txt 
    containing names of all the files etc.