Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Ads
Tom's Hardware > Forum > Windows 95/98/ME > General Discussion > Want simple method to require somekind of selection to lau..

Want simple method to require somekind of selection to lau..

Forum Windows 95/98/ME : General Discussion Want simple method to require somekind of selection to lau..

Word :    Username :           
 

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

:program
cd\
cd progra~1\_progr~1\<continue path...>
<executable file name here>
GOTO start

:exit
cls
cd\
cls

=========END SAMPLE BATCH FILE=========

Reply to Anonymous
Register or log in to remove.

Archived from groups: microsoft.public.win98.gen_discussion (More info?)

 

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 MVP<>Shell/User<>
Conflicts start where information lacks.
http://www.dts-l.org/goodpost.htm




"SSHO_99" <SSHO99@discussions.microsoft.com> wrote in message
news:3A1F1C59-11F3-45AD-AF09-C8230CC5A68F@microsoft.com...
> 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
>
> :program
> cd\
> cd progra~1\_progr~1\<continue path...>
> <executable file name here>
> GOTO start
>
> :exit
> cls
> cd\
> cls
>
> =========END SAMPLE BATCH FILE=========
>
>
>
>
>

Reply to Anonymous

Archived from groups: microsoft.public.win98.gen_discussion (More info?)

 

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"
<SSHO99@discussions.microsoft.com> 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
>
>:program
>cd\
>cd progra~1\_progr~1\<continue path...>
><executable file name here>
>GOTO start
>
>:exit
>cls
>cd\
>cls
>
>=========END SAMPLE BATCH FILE=========
>
>
>
>

Reply to Anonymous
Tom's Hardware > Forum > Windows 95/98/ME > General Discussion > Want simple method to require somekind of selection to lau..
Go to:

There are 2231 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
  • Ask the community now
  • Publish
Ad
Ads
Latest best answer
Need insight on my pc with windows 98 OS
By wombat_tg, 4 days ago:

You will need a dial-up account with an ISP in order to make use to that modem. (You're...

Best offers
They won a badge
Join us in greeting them
Top experts