cls clears screen
@ECHO OFF The echo command writes character strings to standard output
title A small locker for Portable Drive...by CA50 title that should be displayed
REM /Coded by ~CA~. Don`t modify else BOOM!!!/ just info about the code, these steps are skipped while execution
REM /Last coding done on 11:10 PM 18 April 2011/
if NOT EXIST autorun.inf md autorun.inf creates a autorun folder if it doesn't exit, as a precaution against autorun virus
attrib +r +s +h +a autorun.inf changes attribute of the directory to hidden,read only and marks it as a system directory
color ac for changing color of the DOS console
if EXIST "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}" goto UNLOCK check if there is a locked folder, if yes then it jumps to unlock part
if NOT EXIST Locker goto MDLocker when no locked folder is found, then it jumps to MDlocker
:CONFIRM label
echo.
echo .##. .*###.*. .######## UI
echo .*##* *######## .##***##### UI
echo *###..#### #.. .. .####* UI
echo *###. .#### # #####**####. UI
echo *#### #### # #*.*## *#### UI
echo .####*. .## ##### #### #. .. *. *###* .####*. .##.UI
echo *########### ##### #### #. .#****#####. *########### UI
echo *# .***. *####* #### #. .############ .#. .*#*. UI
echo #####. **. # .#* #. ##### UI
echo ######. ####* .######** #####*. UI
echo .############* *######## .####* UI
echo .*####** *. ** **. UI
echo.UI
echo Do you want to lock this Locker?? user prompt
echo Your response : (Y/N) user prompt
set/p "cho=>" accepts user choice
if %cho%==Y goto LOCK matches user data for Yes or No
if %cho%==y goto LOCK matches user data for Yes or No
if %cho%==n goto END matches user data for Yes or No
if %cho%==N goto END matches user data for Yes or No
color Cfor changing color of the DOS console
echo.UI
echo *************************** INVALID CHOICE ****************************UI
echo *********************** contact : email ************************* UI
echo.UI
pause. pause execution
goto END jumps to END as the user have pressed invalid key
:LOCK label
ren Locker "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}" renames the locker directory to My Computer with its address, so that the locker folder changes to My computer
attrib +h +s +r +a "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}" changes the attributes
echo Status : Locked UI
goto End jumps to END
:UNLOCKlabel
color ca for changing color of the DOS console
echo.
echo .##. .*###.*. .######## UI
echo .*##* *######## .##***##### UI
echo *###..#### #.. .. .####* UI
echo *###. .#### # #####**####. UI
echo *#### #### # #*.*## *#### UI
echo .####*. .## ##### #### #. .. *. *###* .####*. .##.UI
echo *########### ##### #### #. .#****#####. *########### UI
echo *# .***. *####* #### #. .############ .#. .*#*. UI
echo #####. **. # .#* #. ##### UI
echo ######. ####* .######** #####*. UI
echo .############* *######## .####* UI
echo .*####** *. ** **. UI
echo.UI
echo Enter password for unlocking "Locker" password prompt
set/p "pass=>" accepts user password
if NOT %pass%== password goto FAIL matches password with default password, if wrong then jumps to FAIL
attrib -h -s -r -a "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}" restores changed attributes
ren "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}" Locker renames My computer to Locker
echo Status : UnlockedUI
goto end jumps to END
:FAILlabel
color C for changing color of the DOS console
echo.UI
echo.UI
echo ************************** INVALID PASSWORD ***************************UI
echo *********************** contact :email ************************ UI
echo.UI
pause pause execution
goto end label
:MDLocker
md Locker creates a new directory named - Locker
echo Locker program successfully executedUI
goto End jumps to end
:Endexecution ends