Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
261 B

  1. @echo off
  2. :: clear readonly attributes
  3. :: for the files listed in %2
  4. :: in the directory %1
  5. :CHMOD
  6. SET TARGET=%1
  7. SET LISTFILE=%2
  8. SET LISTFILE=%LISTFILE:"=%
  9. PUSHD %TARGET%
  10. FOR /F %%f IN (%LISTFILE%) DO @(%WINDIR%\SYSTEM32\attrib -R %%f)
  11. POPD
  12. GOTO :EOF