G
Guest
Guest
Archived from groups: microsoft.public.win98.gen_discussion (More info?)
Hello,
My daughter would like to keep her brother from launching a program. My
thought is to have a simple method to require a selection,hidden number or
even a real password to launch the executable. This does not have to be
complicated or technical. It does not have to be hard to crack or find out
how it works (at least for a couple of years until they get more computer
savy). It could be a simple batch file, vbscript, or something pre-made.
Here is a simple dos batch file that is ALMOST good enough. The reason it's
not good enough is the two choices will show directly below the menu. If
there is a way to NOT show the choices on the screen, then this simple
example would work. By not showing choice "2", the odds of finding out that
2 is the 'password' is slim since the assumption would be that the password
would be complicated.
SAMPLE.BAT
=========BEGIN SAMPLE BATCH FILE=========
@echo off
cls
:start
echo É�������������������������������»
echo º º
echo º Run program (enter password) º
echo º To Exit (type 1) º
echo º º
echo È�������������������������������¼
choice:/c12
if errorlevel 2 goto program
if errorlevel 1 goto exit
rogram
cd\
cd progra~1\_progr~1\<continue path...>
<executable file name here>
GOTO start
:exit
cls
cd\
cls
=========END SAMPLE BATCH FILE=========
Hello,
My daughter would like to keep her brother from launching a program. My
thought is to have a simple method to require a selection,hidden number or
even a real password to launch the executable. This does not have to be
complicated or technical. It does not have to be hard to crack or find out
how it works (at least for a couple of years until they get more computer
savy). It could be a simple batch file, vbscript, or something pre-made.
Here is a simple dos batch file that is ALMOST good enough. The reason it's
not good enough is the two choices will show directly below the menu. If
there is a way to NOT show the choices on the screen, then this simple
example would work. By not showing choice "2", the odds of finding out that
2 is the 'password' is slim since the assumption would be that the password
would be complicated.
SAMPLE.BAT
=========BEGIN SAMPLE BATCH FILE=========
@echo off
cls
:start
echo É�������������������������������»
echo º º
echo º Run program (enter password) º
echo º To Exit (type 1) º
echo º º
echo È�������������������������������¼
choice:/c12
if errorlevel 2 goto program
if errorlevel 1 goto exit
rogram
cd\
cd progra~1\_progr~1\<continue path...>
<executable file name here>
GOTO start
:exit
cls
cd\
cls
=========END SAMPLE BATCH FILE=========