@ECHO OFF IF NOT "%OS%"=="Windows_NT" GOTO END IF NOT EXIST C:\FileMan\PERMISS.VBS GOTO END :: IF NOT EXIST %windir%\SYSTEM32\ATTRIB.EXE GOTO END IF NOT EXIST C:\FileMan\FIXNT6.EXE GOTO END :: PERMS_1.CMD = This BATch script (.CMD) *requires* PERMISS.VBS to be present inside *same* directory/folder ! :: Do *NOT* open/run/execute PERMS_1.CMD (this BATch script) by itself, it *MUST* be executed by running PERMISS.VBS ! :: (1) Change owner to Administrator + grant Full permission privileges for all (sub)folders/files underneath selected Drive/Folder: C:\FileMan\FIXNT6.EXE /S "%1" >NUL :: (2) Change Attributes to Archive (A) for all (sub)folders/files underneath selected Drive/Folder [optional]: :: %windir%\SYSTEM32\ATTRIB.EXE /D /S -A -H -R -S -I "%1\*.*" >NUL :: %windir%\SYSTEM32\ATTRIB.EXE /S +A -H -R -S -I "%1\*.*" >NUL :END EXIT