问题
When I execute following line on CMD, it doesn't delete hidden files. What's wrong with this function?
For /r %%i in (*.mta) do del "%%i"
回答1:
Don't do it in a loop.
del /S /A:H <folder_name> *.mta
deletes recursively in subfolders, with the attributes, hidden; help del
in cmd will give you more options.
来源:https://stackoverflow.com/questions/8463410/recursively-delete-hidden-files-with-exact-extension