Remove these ads by
Signing UpStep 1Getting Started
@echo off & setlocal "This line makes it so that you don't see every command run"
set /a counter=0 "this sets a counter to zero"
color 7 "this tells the program that the screen should be black with white letters"
:header "this is a reference point to direct the program to.
title Lock Computer II for %username% "this creates a title for the window with your username%
cls "this clears the screen"
taskkill /f /im explorer.exe "this line force quits the explorer program that shows you your
computer"
goto start121 "this directs the program to the reference pooint start121"
:COUNTERSET "reference point"
set /a counter=0 "counter is set again to zero"
:start121 "reference point"
color 7 "sets the color to black and white"
cls "clear"
echo This computer is in use and has been locked. "displays"
echo. "displays an empty line"
echo Only Nick can unlock this computer. "displays"
echo. "displays an empty line"
echo If you are experiencing any difficulties contact the author by typing author. "displays"
echo. "displays an empty line"
set unlockcode= "makes the variable unlockcode"
set /p unlockcode=Enter the Unlock Code to unlock this computer. "prompts for user input"
if '%unlockcode%'=='legolas1' goto unlock "checks for password and directs to a reference point%
if '%unlockcode%'=='Author' goto contact "checks for password and directs to a reference point%
if '%unlockcode%'=='author' goto contact "checks for password and directs to a reference point%
if not '%unlockcode%'=='legolas1' goto middle "checks for password and directs to a reference point%
| « Previous Step | Download PDFView All Steps | Next Step » |









































Good job otherwise.