Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道我可以在命令行中列出文件夹并将其复制到电子表格中,但如果文件夹名称是中文,则名称显示不正确。我猜命令提示符不支持Unicode?我使用的是英文版 Windows XP 操作系统。
不通过控制台窗口直接重定向到文件怎么样?
就像是:
dir /b path/to/china > folders.txt
然后在 Excel 中打开生成的文本文件?这应该会为您提供一个文件名采用 Windows 文件名编码的文本文件。