NETWORK PERFORMANCE

:: This batch file checks for network connection problems.
ECHO OFF
:: View network connection details
ipconfig /all
:: Check if detik.com is reachable
ping detik.go.id
:: Run a traceroute to check the route to detik.go.id
tracert detik.go.id
PAUSE

LIST FILE

@echo off 
Rem Listing all the files in the directory Program files 
dir "C:\Program Files" > C:\geeks_list.txt 
echo "Done!"

FAKE ALARM

***NEW: I've added an extra command that disables themes to make it look more realistic.
@echo off
color 47
net stop themes >nul
title DEEP VIRAL INFECTION!
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 -



pause

cls

echo -

echo SCANNING INFECTED AREAS...

echo -



pause



set /a num=0

:repeat1

set /a num=%num% +1

echo %num%

if %num%==100 goto end

goto repeat1

:end

cls

echo -

echo 86.5 PERCENT OF MEMORY INFECTED

echo -

echo INFECTION FATAL!

echo -

echo DELETION OF ENTIRE CONTENTS OF LOCAL DISK C: REQUIRED

echo - 



pause

cls

echo -

echo DELETING HARD-DRIVE C:

echo -

dir /s



pause

cls

echo -

echo CONTENTS OF HARD-DRIVE C: ERASED

echo -



pause

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 - 

pause



echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR

echo ERROR



pause

cls

title SYSTEM FAILURE

color 17

echo ERROR!

echo -

echo VISUAL MEMORY LOST!

echo -

echo RAM LOST!

echo -

echo CORE PROCESSOR FAILING...

echo -

echo TOTAL SYSTEM CRASH IMMINENT!

echo -

echo -



pause

cls

echo -

echo -

echo -

echo SHUTDOWN COMPUTER NOW TO AVOID RISK OF FIRE!

echo -

echo -

echo -



pause

cls

echo -

echo -

echo -

echo SEEK PROFESSIONAL HELP IMMEDIATLY TO PREVENT FURTHER DAMAGE!

echo -

echo -

echo -

pause

start shutdown -s -t 60 -c "SYSTEM FAILURE<SHUTTING DOWN TO AVOID FURTHER DAMAGE!"

**NB: Type "shutdown -a" in your Run box to abort a system shutdown

***Type "net start themes" to in your Run box to get the themes service working

PILIH WEBSITE

@echo off
color 2f
title Site Selector by sRits
: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 sRits
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 sRits
echo.
echo ***************************************************************
pause
exit

TEBAK ANGKA

@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.
: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%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%
goto top
:equal
echo Congratulations, You guessed right!!!
echo.
echo It took you %guessnum% guesses.
echo.
pause

FOLDER PROTECTOR

2. simple folder protector

This is pretty cool as it requests a password for a folder.
Once you copy it into notepad you must insert your own password and designated folder directory into the designated areas!
NB: THERE ARE TWO PLACES IN WHICH YOU MUST ENTER INFO!!!

@echo off
title Folder Password v1.5
color 0a
set /a tries=3
set password=***ENTER YOUR PASSWORD HERE***
:top
echo.
echo ----------------------------------------------
echo.
echo Folder 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 Folder...
echo ----------------------------------------------
explorer ***ENTER FOLDER PATH HERE***
pause

*NOTE: This is not an advanced piece of software, it does not hide or block the destination folder or anything like that so don't get your hopes up.
**Yes, it can now open files with spaces, just use a backslash (\) when typing your filepath.

BATCH CALCULATE

This is...well... a 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

Program kecil yang menghitung sampai 2000 dan dari 2000 ke nol

@echo off
set /a num=0

:top
set /a num=%num%+1
echo %num%
if %num%==2000 goto goback
goto top

:goback
set /a num=%num%-1
echo %num%
if %num%==0 goto top
goto goback

SET ORDER AND /P

@echo off
set /a num=1
:top
set /a num=%num%+1
echo %num%
goto top

program untuk menambah terus dan terus sampai  ctrl+c

So now that we can use variables what if we have a choice of options, like:
press 1 to say Hello.
press 2 to say Goodbye.

We use the "IF" command, for example:

Type this in your CMD:
if 1==1 echo See it works!
(==) means "is equal to", you could also type "EQU")
We got a message saying "See it works!"

Now type this:
if 1==2 echo It Works!
We didn't see anything because 1 does not equal 2

If we want to wait for the user to put something in we add a /p and leave the part after the variable empty.

Like this:
set /p variablename=

That means that the computer will wait for you to put in something.

so we type:
**************************************
@echo off
set v1=hi!!
set v2=bye!!
echo Press 1 to say HI!
echo Press 2 to say BYE!
set /p you=
if %you%==1 echo %v1%
if %you%==2 echo %v2%
pause
**************************************
This is telling the computer that if we type 1, it must echo HI!, and if we say 2 it must echo BYE!!
and if not 1 or 2, computer just end work

dimulai dengan ECHO

echo adalah perintah dimana kalimat yang ada dibelakangnya akan tampil

dan jika dijalankan, akan disertai dengan folder tempat command dijalankan

maka di batasi dengan @echo off

contoh dasarnya adalah

echo If you type echo before a sentence it displays it as a message!.
echo Wow, thats pretty cool!


dan akan berbeda jika ditambahkan sehingga menjadi :

@echo off
echo If you type echo before a sentence it displays it as a message!.
echo Wow, thats pretty cool!
PAUSE


dimana Pause adalah perintah untuk menghentikan sejenak, di programnya akan tampil
   press anykey to continue...

ada juga begini

@echo off
:fish
echo This is only one message being repeated over and over; Press Ctrl+C to stop
goto fish


 ini untuk start command 

The START command starts something.
Not much to explain here.

For example:
open your CMD and type:
"start www.instructables.com"
This opens your default explorer and goes to the Instructables site.
OR
"start itunes"
OR
You can also open files or folders:
"start desktop\foldername


 demikianlah very dasar untuk pemprograman dengan batch 

BATCH FILE SEDERHANA

How to Create a Batch File in Windows

Open a text file, such as a Notepad or WordPad document.

Add your commands, starting with @echo [off], followed by—each in a new line—title [title of your batch script], echo [first line], and pause.

Save your file with the file extension .bat, for example, test.bat.

LINK BELAJAR BATCH

Link Colors

WRITE SIMPLE BATCH FILE

BATCH SCRIPT

VERY BASIC TUTORIAL

ADVANCED BASIC TUTORIAL

RIP TUTORIAL

COOL BATCH APPLICATIONS


satu satu yang sabar ya

FIND WI FI SOURCE IN THE COMPUTER

to learn the pazword of a Wi-Fi network that you logged on to windows, first run command prompt with run as administrator
type netsh wlan show profiles
in list of network that will be shown as, look for the network that you want the password off
and type
netsh wlan show profiles isro key=clear
in place of 'isro' you write your network name
now in the list, where you find 'key kontent' written, it is the password of that Wi-Fi network