Guest User

Untitled

a guest
Sep 25th, 2015
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setlocal
  2. set drive_names=(C D)
  3. set except_filenames=(a b c)
  4. for %%i in %drive_names% do (
  5.     %%i:
  6.     cd \
  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
Advertisement
Add Comment
Please, Sign In to add comment