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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|