Ⅰ 怎樣把文件夾裡面所有文件的文件名用最快的方法復制到word文檔裡面
1.打開這個文件夾,復制地址欄中的地址,例如我的是C: emp
2.運行cmd,在黑窗口中輸入
cd和一個空格
然後按右鍵,選擇粘貼,再按回車
當前路徑就是C: emp了
3.再輸入
dir/b>name.txt
按回車
這樣C: emp中所有文件名就保存在name.txt中了。
其它盤加一個 /d ,例如: cd /d d: emp
Ⅱ 請問如何將一個文件夾內所有文件的名稱清單復制到文本或word或excel
在文件夾上,
1:按住Shift Key,右鍵點擊文件夾名稱,選擇「在此打開命令窗口」。
2:切換到英文輸入法下(只說一遍,英文輸入法),輸入 dir /b>filenames.txt .然後按Enter鍵確認。filenames 及你需要的文件名,比如需要list2 則改為 dir /b>list2.txt
3:回到文件夾內,則已建立一個包含所有文件名稱的文件。如右圖所示。
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. Press "Enter."
3. Inside the folder there should now be a file filenames.txt containing names of all the files etc. inside this folder.