3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to make a Computer Lock

How to make a Computer Lock
«
  • Lock.png
  • VBS.png
Do you have a computer that someone knows the password, or are to lazy to lock the computer when you leave, even for a minute? Well this is an instructable our friendly neighborhood nerd has made for us. You will need:

a computer (running Windows 3.1 or higher)
notepad or other simple text editing software
arms and legs are optional if you have speech recognition
keyboard

NOTE:This will not work on Macs (sorry macs)
 
Remove these adsRemove these ads by Signing Up
 

Step 1Open Notepad

Open Notepad
First open notepad.

Win 95-2000, Me
Start>Programs>Accesories>Notepad

Win XP and up
Start>All Programs>Accesories>Notepad

If you see the window shown below then you have notepad.
« Previous StepDownload PDFView All StepsNext Step »
11 comments
Jan 5, 2012. 4:10 PMBigMikeDog says:
When i run it says it's lock but i still can open folders and applications it dosent seam to lock can you help?
Jan 6, 2012. 11:42 AMBigMikeDog says:
ok thanks i know that will work but i got know idea how do do that :- \
Jan 9, 2012. 10:26 AMBigMikeDog says:
yep they both work but you do taskkill /IM explorer.exe
the only problem is that 7 is protected form killin the program so then i just restarts it self
Jan 9, 2012. 10:21 AMBigMikeDog says:
im using this code can anyone help me with the line in the { }'s
@echo off
Title computer lock
cls

:Lock
echo "Please inter a password to lock your computer"
set/p "1Pass=>"
taskkill /IM explorer.exe
cls
echo "This Computer is locked."

:Locked
taskkill /IM explorer.exe
echo "Please type the password to unlock the computer"
set/p "2Pass=>" {this line needs to be skiped if nothing is enterd so it becomes a if enter key hit then take entered value and set it as varlable 2pass anyone know a way to do that?}

:Unlock
if %1pass%==%2pass% then goto End
goto Locked

:End
echo "Have a nice day!"
PAUSE
Jul 25, 2011. 2:57 AMknexinglemon says:
lol for mine if you click the x button two times it sais correct welcome back
Jul 18, 2011. 5:40 AMlanky.ninja says:
What stops the user from simply minimising the popup?
Jul 18, 2011. 7:17 PMlanky.ninja says:
I guess it would for complete ludites

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
6
Followers
13
Author:Super_Nerd
I find a quote from Bill Gates makes a very good description. "Be nice to nerds. Chances are you'll end up working for one." [UPDATE] Wow! Ha...
more »