batch password script help

Brian / Safe lock[+]
June 5, 2010 at 05:06:06
Specs: Windows XP
help... I need help I will hopefully have this script
up for limited time but... i need a script so it will
allow a person to create there own password

cls
@ECHO OFF
title Safe Lock [+]
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure you want to close your safe
set/p "cho=>"
if %cho%==Y goto LOADA
if %cho%==y goto LOADA
if %cho%==yes goto LOADA
if %cho%==Yes goto LOADA
if %cho%==yEs goto LOADA
if %cho%==yeS goto LOADA
if %cho%==YEs goto LOADA
if %cho%==YeS goto LOADA
if %cho%==YES goto LOADA
if %cho%==yES goto LOADA
if %cho%==Yea goto LOADA
if %cho%==yea goto LOADA
if %cho%==Definitely goto LOADA
if %cho%==that would be nice goto LOADA
if %cho%==Sure goto LOADA
if %cho%==n goto END
if %cho%==N goto END
if %cho%==no goto END
if %cho%==NO goto END
if %cho%==nO goto END
if %cho%==nO THX goto END
echo Your choice is invalid.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
@ start /w wscript.exe userin.vbs
@ call ~anyname.bat
@ del ~anyname.bat
%USERIN%
if NOT %USERIN%== >Password here delete the ><to then type< goto FAIL
GOTO LOAD
:LOP
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
cls
goto End
:FAIL
echo Invalid password
goto UNLOCK
:MDLOCKER
md Locker
echo Safe opend successfully
goto End
:LOAD
color 0a
@CLS
@title Safe Lock[+] loading . . .
@ECHO Loading[0 ] Please wait [1%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[00 ] Please wait [2%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000 ] Please wait [3%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000 ] Please wait [4%%]
@Ping.exe localhost -n >NUL
@CLS
@ECHO Loading[00000 ] Please wait [5%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000 ] Please wait [6%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000 ] Please wait [7%%]
@Ping.exe localhost -n 2 >NUL
@CLS
@ECHO Loading[00000000 ] Please wait [8%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000000 ] Please wait [9%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000000 ] Please wait [10%%]
@Ping.exe localhost -n 2 >NUL
@CLS
@ECHO Loading[00000000000 ] Please wait [11%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000000000 ] Please wait [12%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000000000 ] Please wait [13%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[00000000000000 ] Please wait [14%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000000000000 ] Please wait [15%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000000000000 ] Please wait [16%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[00000000000000000 ] Please wait [17%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000000000000000 ] Please wait [18%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000000000000000 ] Please wait [19%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[00000000000000000000] Please wait [20%%]
@Ping.exe localhost -n 1 >NUL
@CLS
color 0f
@ECHO All done loading Safe Lock[+] . . .
@PAUSE
title Safe Lock[+]
goto LOP
:LOADA
@CLS
@title Safe Lock[+] loading . . .
color 0a
@ECHO Loading[0 ] Please wait [1%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[00 ] Please wait [2%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000 ] Please wait [3%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000 ] Please wait [4%%]
@Ping.exe localhost -n >NUL
@CLS
@ECHO Loading[00000 ] Please wait [5%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000 ] Please wait [6%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000 ] Please wait [7%%]
@Ping.exe localhost -n 2 >NUL
@CLS
@ECHO Loading[00000000 ] Please wait [8%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000000 ] Please wait [9%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000000 ] Please wait [10%%]
@Ping.exe localhost -n 2 >NUL
@CLS
@ECHO Loading[00000000000 ] Please wait [11%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000000000 ] Please wait [12%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000000000 ] Please wait [13%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[00000000000000 ] Please wait [14%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000000000000 ] Please wait [15%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000000000000 ] Please wait [16%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[00000000000000000 ] Please wait [17%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[000000000000000000 ] Please wait [18%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[0000000000000000000 ] Please wait [19%%]
@Ping.exe localhost -n 1 >NUL
@CLS
@ECHO Loading[00000000000000000000] Please wait [20%%]
@Ping.exe localhost -n 1 >NUL
@CLS
color 0f
@ECHO All done loading Safe Lock[+] . . .
@PAUSE
title Safe Lock[+]
goto LOCK
:End

I think its pretty darn long but that's just the batch here id the .vbs script(save as userin)

strUserIn = InputBox("Enter password to Unlock Safe")
Set fs = CreateObject("Scripting.FileSystemObject")
strFileName = fs.BuildPath(Wscript.ScriptFullName & "\..", "~anyname.bat")
strFileName = fs.GetAbsolutePathName(strFileName)
Set ts = fs.OpenTextFile(strFileName, 2, True)
ts.WriteLine "set userin=" & strUserIn

steal my script or any part of it i will personal hunt you down (folder locking system is already on the internet i did not make that first)

Brian
for the choice if you peoples can come up with more ways to say yes and no i will give credit to you if your information is helpful


See More: batch password script help

Report •

#1
June 5, 2010 at 06:10:49
My Yes/No checker:

:Get_Opt
SET /P UserOPTYN=Would you like to setup any of these applications^? ^(Yes/No^): 
SET UserOPTYN=%UserOPTYN:~0,1%
IF /I "%UserOPTYN%" NEQ "Y" (
    IF /I "%UserOPTYN%" NEQ "N" (
        ECHO Please use either Yes or No for your answer. & PAUSE & GOTO Get_Opt
    )
)

Also, I found this Title Progress routine just recently:
http://www.dostips.com/DtCodeBatchF...


Report •

#2
June 5, 2010 at 10:45:02
i am sorry this isn't even relevant to the question. other than
the loading bar which i all ready have so have some loading
bars.
@echo off
title Loading...
color 0a
set load=
set/a loadnum=0
:Loading
set load=%load%l
cls
echo.
echo Loading... Please Wait...
echo ----------------------------------------
echo %load%
echo ----------------------------------------
ping localhost -n 1 >nul
set/a loadnum=%loadnum% +1
if %loadnum%== goto Done
rem
goto Loading
:Done
echo.
pause
rem *hula*
exit
and

Report •

#3
June 5, 2010 at 10:59:48
Oh. That code wasn't in the original post. I saw the lengthy
process of ECHO Loadings, and thought I'd through that link in.
As far as the other, I was attempting to address:

[quote]
for the choice if you peoples can come up with more ways to say
yes and no i will give credit to you if your information is helpful
[/quote]


Report •

Related Solutions

#4
June 5, 2010 at 12:11:55
it is not lengthy i didn't touch my key board when i typed this
or Safe Lock[+]

Report •

#5
June 6, 2010 at 03:45:43
i have dragon speech recognition software
o.O
Brian


Report •

Ask Question