|
Answer» Hi to all.
I am kinda a biginer, and i am error prone with the writing of batch files. I have written a program that is sopposed to open a HIDDEN folder, on my usb memory device I made it work once, but i accidentally erased a part of it, but it worked before i erased.
The file goes LIKE this...
echo off color 0c title lOGIN
echo 000PASSWORD0 000 echo 00000000000000 0000 echo 00000000000000000 0000000 echo 0000000000000000000 0000000000 echo 000000000000000000000 0000000000 echo 00000000000000000000000 00000000htp0 echo 000000000000000000 0000000htp00 echo 0000000000000000000 0000HTP000000 echo 0000000000000000000 000HTP0000000 echo 0000000000000000000 000000HTP0000 echo 00000000000000000000 0000000HTP0000 echo 000000000 000 000000 0000 00000000000000 echo 0000000000 00 00000 00000000000000000000 echo 000000000 00000 0000000000000000000 echo 000000000 00000 0000000000 0000000 echo 000000000 00000 00000 0000000 echo 000000000000 000000 0000000 echo 000000000000 00000 00000000 echo 000000000000 000 0000000000 echo 00000000000 0000000000 echo 000000 00000000000 echo 0000000 000000 echo 0000000 0000000 echo 00000000 00000000 echo 00000000 00000000000 echo 0000000000000 00000000000000 echo 000all_files_will_be_deleted0000 echo 0after_3_incorect attempts00 echo 0000000WILLBURN000000
echo Welcome, zERoBurN echo Continue? pause
cls echo sensitive information ECHO pasword REQUIRED
:password set input= password = set/p input=password (input then press enter): if %input%==willburnyou goto YES if not %input%==willburn goto NO
:YES start "allinfo" exit
:no
echo incorrect password.... pause
cls echo sensitive information ECHO pasword required
:password set input= password = set/p input=password (input then press enter): if %input%==willburnyou goto YES if not %input%==willburn goto next1
next1 echo incorrect password.... pause
cls echo sensitive information ECHO pasword required
:password set input= password = set/p input=password (input then press enter): if %input%==willburnyou goto YES if not %input%==willburn goto next2
:next2 echo incorect password
pause
echo you have been terminated echo This file and all subfoders are now deleted del allinfo\access.bat shutdown -i pause
I was also having trouble with getting it to shutdown. any help would be nice, or anything you think i should add. the reason for the no directory name is that computers change the name of the directory a lot, so i want it universal, this feature worked before.
and the immage at the biggining looks deformed, but that is the diference between notepad and this.\
Thanks for all the helpalso, to add, i am on a vista system right now, but i primarily use xp. I still want it universal for any windows computer thankstry This
CODE: [Select]echo off color 0c title lOGIN cd..
echo 000PASSWORD0 000 echo 00000000000000 0000 echo 00000000000000000 0000000 echo 0000000000000000000 0000000000 echo 000000000000000000000 0000000000 echo 00000000000000000000000 00000000htp0 echo 000000000000000000 0000000htp00 echo 0000000000000000000 0000HTP000000 echo 0000000000000000000 000HTP0000000 echo 0000000000000000000 000000HTP0000 echo 00000000000000000000 0000000HTP0000 echo 000000000 000 000000 0000 00000000000000 echo 0000000000 00 00000 00000000000000000000 echo 000000000 00000 0000000000000000000 echo 000000000 00000 0000000000 0000000 echo 000000000 00000 00000 0000000 echo 000000000000 000000 0000000 echo 000000000000 00000 00000000 echo 000000000000 000 0000000000 echo 00000000000 0000000000 echo 000000 00000000000 echo 0000000 000000 echo 0000000 0000000 echo 00000000 00000000 echo 00000000 00000000000 echo 0000000000000 00000000000000 echo 000all_files_will_be_deleted0000 echo 0after_3_incorect attempts00 echo 0000000WILLBURN000000
echo Welcome, zERoBurN echo Continue? pause
cls echo sensitive information ECHO pasword required
:password set input= password = set/p input=password (input then press enter): if %input%==willburnyou goto YES if not %input%==willburn goto NO
:YES start "allinfo" exit
:no
echo incorrect password.... pause
cls echo sensitive information ECHO pasword required
:password set input= password = set/p input=password (input then press enter): if %input%==willburnyou goto YES if not %input%==willburn goto next1 goto YES
:next1 echo incorrect password.... pause
cls echo sensitive information ECHO pasword required
:password set input= password = set/p input=password (input then press enter): if %input%==willburnyou goto YES if not %input%==willburn goto next2 goto YES
:next2 echo incorect password
pause
echo you have been terminated echo This file and all subfoders are now deleted del allinfo\access.bat shutdown -s pause
|