The following batch file can be used to establish a password for running a program. The
batch file is named START.BAT and calls the program named WP.COM.
ECHO OFF
IF %1==XYZ GOTO GOOD
ECHO BAD PASSWORD...ENDING
GOTO END
:GOOD
ECHO YOU'RE OK...STARTING
WP
:END
Below you'll see the response of the computer to various commands...
First the bad password. At the prompt type START ABC.
A>START ABC
A>ECHO OFF
BAD PASSWORD...ENDING
A>_
Now use the correct password. Type the correct command at the prompt.
A>START XYZ
A>ECHO OFF
YOU'RE OK...STARTING
At this point the WP program starts. You don't see the command because echo is off.
No comments:
Post a Comment