Originally, I planned to use the for command to delete all *.info files on the disk. The batch commands used were:
for /r %%a in (c: d: e: f:) do tree /f > 1.txt
for %%a in (1.txt) do del *.info
But the *.info files were automatically given the hidden attribute. I don't know how to handle this. I'm asking everyone for help. Thanks!
I initially used for /r %%a in (c: d: e: f:) do attrib -h *.info, but when I ran it, I found that it only modified the info files in the current directory. If I changed it to for /r %%a in (c: d: e: f:) do attrib -h *.info %%a, it would prompt a parameter error. I'm just learning batch processing and don't understand the commands well. Please give me your advice. Thanks again!
[ Last edited by honyfox on 2007-1-18 at 08:16 PM ]
for /r %%a in (c: d: e: f:) do tree /f > 1.txt
for %%a in (1.txt) do del *.info
But the *.info files were automatically given the hidden attribute. I don't know how to handle this. I'm asking everyone for help. Thanks!
I initially used for /r %%a in (c: d: e: f:) do attrib -h *.info, but when I ran it, I found that it only modified the info files in the current directory. If I changed it to for /r %%a in (c: d: e: f:) do attrib -h *.info %%a, it would prompt a parameter error. I'm just learning batch processing and don't understand the commands well. Please give me your advice. Thanks again!
[ Last edited by honyfox on 2007-1-18 at 08:16 PM ]

