Originally posted by Nickey at 2008-2-23 05:15 PM:
Why change the
for /f "tokens=*" %%a in ('dir /b /ad /s "E:\"^|sort /r') do rd "%%a" 2>nul
to:
for /f "tokens=*" %%a in ( ...
'dir /b /ad /s "E:\"^|sort /r'
This command is used to list all folder names (with /ad) under and in subdirectories (/s) of drive E:
/ad specifies to print folder names
Then assign the folder name to %%a
2>nul
means to write the error commands when executing the rd "%%a" command to the null device (that is, no feedback is needed)
Changing it to echo "%%a" >>aaa.txt
Of course, it is to write the system feedback when deleting empty files to aaa.txt
Because %%a is the folder name
[
Last edited by zyz0304360 on 2008-2-23 at 06:07 PM ]
路 是自己选的
学习 是为了具备解决问题的能力