我使用 Windows 命令行导出目录中所有文件的列表,包括完整路径。命令是:
DIR /b/s/n/a:-d/o:>"C:\Users\user\Desktop\file_list.txt"
/b to list only files and folder with no additional information;
/s to list all files within the subfolders;
/n to list long names (here is my problem, it still list max. 255 char);
/a:-d to not list directories without files;
/o to sort files.
我想在 PowerShell 上运行类似的命令,但要列出超过 255 个字符的文件。
任何人都可以帮助执行命令吗?