home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
dosutils
/
lamenu10.arj
/
ADDPASS.BC
next >
Wrap
Text File
|
1991-01-24
|
3KB
|
163 lines
echo \\27[41;37m
cls
locate 1 17
echo Addpass - LaMenu System Password Utility v1.0
if .%1 = . goto params
let %!f = %1
locate 14 22
echo Type The Password To Add To Menu - %!f
locate 18 35
echo \\218\\196\\196\\196\\196\\196\\196\\196\\196\\191
locate 19 35
echonolf \\179
locate 19 44
echo \\179
locate 20 35
echo \\192\\196\\196\\196\\196\\196\\196\\196\\196\\217
locate 22 15
echo Press Enter When Done (password is case sensitive)
locate 23 33
echo [ESC] To Cancel
:L1
locate 19 36
getkey
error_level %!o
if %!o = 13 goto end
if %!o = 27 goto end
echonolf \\42
:L2
locate 19 37
getkey
error_level %!p
if %!p = 13 goto check1
if %!p = 8 goto L2a
echonolf \\42
goto L3
:L2a
locate 19 36
echonolf \\0
goto L1
:L3
locate 19 38
getkey
error_level %!q
if %!q = 13 goto check2
if %!q = 8 goto L3a
echonolf \\42
goto L4
:L3a
locate 19 37
echonolf \\0
goto L2
:L4
locate 19 39
getkey
error_level %!r
if %!r = 13 goto check3
if %!r = 8 goto L4a
echonolf \\42
goto L5
:L4a
locate 19 38
echonolf \\0
goto L3
:L5
locate 19 40
getkey
error_level %!s
if %!s = 13 goto check4
if %!s = 8 goto L5a
echonolf \\42
goto L6
:L5a
locate 19 39
echonolf \\0
goto L4
:L6
locate 19 41
getkey
error_level %!t
if %!t = 13 goto check5
if %!t = 8 goto L6a
echonolf \\42
goto L7
:L6a
locate 19 40
echonolf \\0
goto L5
:L7
locate 19 42
getkey
error_level %!u
if %!u = 13 goto check6
if %!u = 8 goto L7a
echonolf \\42
goto L8
:L7a
locate 19 41
echonolf \\0
goto L6
:L8
locate 19 43
getkey
error_level %!v
if %!v = 13 goto check7
if %!v = 8 goto L8a
echonolf \\42
goto check8
:L8a
locate 17 42
echonolf \\0
goto L7
:check1
let %!x = %!o
goto pass_back
:check2
let %!x = %!o%!p
goto pass_back
:check3
let %!x = %!o%!p%!q
goto pass_back
:check4
let %!x = %!o%!p%!q%!r
goto pass_back
:check5
let %!x = %!o%!p%!q%!r%!s
goto pass_back
:check6
let %!x = %!o%!p%!q%!r%!s%!t
goto pass_back
:check7
let %!x = %!o%!p%!q%!r%!s%!t%!u
goto pass_back
:check8
getkey
error_level %!z
if %!z = 13 goto go8
if %!z = 8 goto re8
beep
goto check8
:re8
locate 15 43
echonolf \\0
goto L8
:go8
let %!x = %!o%!p%!q%!r%!s%!t%!u%!v
goto pass_back
:params
cls
locate 2 28
echo Addpass Utility Format:
locate 6 2
echo ADDPASS [filename] - Where filename is the executable name of
locate 7 2
echo the menu file you wish to generate the password for
locate 8 15
echo (do not use an extension)
exit
:pass_back
echo %!x>>%!f.ctl
:end
echo \\27[0m
cls