@echo off color a title File Locker echo %cd% ::remove :: from next line after you finish tweaking program ::attrib +s +r Lock.bat pause ::polls command cls set /p pwd= Password: if %pwd% == unlock goto unlock if %pwd% == lock goto lock if %pwd% == 101 goto emergency :exit ::if no valid command is entered, files get locked cls cd C:\Users\ptkrf\Desktop\Just Stuff\ attrib +h +s +r *.mp4 cls echo Access denied... ping localhost - 2 >nul exit :unlock ::unlocks files cls cd C:\Users\ptkrf\Desktop\Just Stuff\ attrib -s -h -r *.mp4 cls echo %cd% echo. echo Files Unlocked... ping localhost -n 2 >nul exit :lock ::locks files cls cd C:\Users\ptkrf\Desktop\Just Stuff\ attrib +h +s *.mp4 cls echo Success. ping localhost -n 2 >nul exit :emergency ::deletes files cls set /p e= Awaiting confirmation. (Y/N): if %e% == Y goto Y if %e% == y goto Y exit :Y ::confirm delete cd C:\Users\ptkrf\Desktop\Just Stuff\ attrib -r -s *.mp4 del /q *.mp4 exit