Simple stand alone cybercafe internet timer

A local café owner has a couple of PCs that he lets users surf the web from. He wanted a simple system to allow the users to pay for 30 minutes usage, to be logged on and then logged off at the end of the agreed time.

The PC are standalone and much of the software designed for cyber cafes assume the PC are controlled by a server.   I set about to produce a simple system which would log off the users after 30 minutes.

The main code is in a BAT file called screen.bat  as shown below.


start iexplore C:\windows\cafe\message.htm


start C:\windows\cafe\logoff.bat

ping -n 120 > nul

start C:\windows\cafe\logoffnow.bat

ping -n  10 > nul

TASKKILL /F /IM iexplore.exe

TASKKILL /F /IM firefox.exe

ping -n 10 > nul

shutdown –l

This opens up explorer and a welcome web page at C:\windows\cafe\message.htm warning the user that they are limited to 30 minutes PC usage. After 1800 second,  logoff.bat is run which warns the user they have 2 minutes remaining .

This is followed by a warning from logoffnow.bat saying the PC is about to shut down.

TASKKILL /F /IM iexplore.exe TASKKILL /F /IM firefox.exe

closes the browser while

ping -n 5 > nul & shutdown –l    logs then off 10 seconds later.


The BAT file is run in an invisible state by using a short vbs script.

“CreateObject(“Wscript.Shell”).Run “C:\windows\screen.bat”,0,True”


The VBS script is run every time the users logs on by adding a key to the registry at


“My VBS Script”=”C:\cafe\timer.vbs”


The result is that on start up the pc shows a password protected logon screen, the cyber café user is selected and IE opens with a warning page and starts a 30 minute time. After this  a 2 minute warning sign in flashed on the screen followed by another warning just before the  PC is shut down.

The cafe owner has been running this over the last few days and now has control off the maximum internet time each user can have.


A cheap and simple cybercafé timer which can be modified as required.





This entry was posted in Internet, Misc, Security, Windows and tagged , , , . Bookmark the permalink.

4 Responses to Simple stand alone cybercafe internet timer

  1. Thanks for sharing such a nice information.Its a really helpful to pc users.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s