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.
 
 
 
 
 
 

12 lines
261 B

@echo off
:: clear readonly attributes
:: for the files listed in %2
:: in the directory %1
:CHMOD
SET TARGET=%1
SET LISTFILE=%2
SET LISTFILE=%LISTFILE:"=%
PUSHD %TARGET%
FOR /F %%f IN (%LISTFILE%) DO @(%WINDIR%\SYSTEM32\attrib -R %%f)
POPD
GOTO :EOF