文件名字 *.cmd
1 for /f "delims=?" %%a in ('dir /a /b') do attrib -a -s -h -r "%%a" 2 @echo off 3 pause>nul 4 exit