我试图打印所有文件和文件夹存在于不同分区的硬盘使用列表:
for %d in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do (ifexist %d: (dir %d:/s >> %Systeminfo_TXT%))
但它不打印任何输出
我错在哪里!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1条答案
按热度按时间t1rydlwq1#
for %%d in(a B c d e f g h i j k l m n o p q r s t u v w x y z)do(if exist %%d:(dir %%d:\ /s〉〉%Systeminfo_TXT%))