:: reset archive bit on all files on multiple drives @echo off if .%1==.DoDir goto DoDir if exist enter.com goto conflict if exist new.bat goto conflict echo Reset Archive Bits for all files on all drives? choice /c:ny >nul if not errorlevel 2 goto done copy c:\dos\loadfix.com enter.com > nul echo C:>dirfile$ dir c:\ /s /ad /b>>dirfile$ :: uncomment or add as needed ::echo D:>>dirfile$ ::dir d:\ /s /ad /b>>dirfile$ ::echo E:>>dirfile$ ::dir e:\ /s /ad /b>>dirfile$ echo.>>dirfile$ type dirfile$|date|find "Enter" > dirfile$.bat del dirfile$ echo @echo off > new.bat echo %0 DoDir %%3 >> new.bat call dirfile$.bat del dirfile$.bat del enter.com del new.bat goto done :conflict echo ENTER.COM or NEW.BAT exists - remove or rename goto done :DoDir if .%2==. goto done if not exist %2\*.* goto done echo %2.. attrib %2\*.* -a :done