A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Want simple method to require somekind of selection to launch prog



 
 
Thread Tools Display Modes
  #1  
Old April 2nd 05, 03:49 PM
SSHO_99
external usenet poster
 
Posts: n/a
Default Want simple method to require somekind of selection to launch prog

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=========





  #2  
Old April 2nd 05, 04:29 PM
Brian A.
external usenet poster
 
Posts: n/a
Default

Why not put it in a pw protected .zip archive. The only difference is you don't
have to write the code. Double click the .zip, type in the pw and the file is
accessible. No pw, no access.

--

Brian Sesko
MS MVPShell/User
Conflicts start where information lacks.
http://www.dts-l.org/goodpost.htm




"SSHO_99" wrote in message
...
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=========






  #3  
Old April 2nd 05, 11:55 PM
Bill Watt
external usenet poster
 
Posts: n/a
Default


You might remove the shortcut from the
C:\WINDOWS\Start Menu\Programs folder and put it in another folder,
like Junk. D-clicking the shortcut should start the program.
Haven't tried it but it may do what you want.

Regards,

Bill Watt
Computer Help and Information http://home.epix.net/~bwatt/
__________________________________________________

On Sat, 2 Apr 2005 06:49:02 -0800, "SSHO_99"
wrote:

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=========





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.