SHOW:
|
|
- or go back to the newest paste.
| 1 | - | for %%i in (C D) do ( |
| 1 | + | setlocal |
| 2 | set drive_names=(C D) | |
| 3 | set except_filenames=(a b c) | |
| 4 | - | for %%j in (a b c) do attrib +r +s %%j.xlsm |
| 4 | + | for %%i in %drive_names% do ( |
| 5 | - | del /s /q *.xlsm |
| 5 | + | |
| 6 | - | for %%j in (a b c) do attrib -r -s %%j.xlsm |
| 6 | + | |
| 7 | - | ) |
| 7 | + | for %%j in %except_filenames% do attrib +r +s %%j.xlsm |
| 8 | del *.xlsm | |
| 9 | for %%j in %except_filenames% do attrib -r -s %%j.xlsm | |
| 10 | ) | |
| 11 | endlocal |