:: 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
NETWORK PERFORMANCE
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
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
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
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
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
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
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
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
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.
BAGAIMANA JIKA KITA LUPA PASSWORD WIFI DI LAPTOP
Cara Mengetahui Password Wi-Fi yang Tersimpan di Laptop Windows (Tanpa menggunakan Aplikasi)
Pernahkah Anda lupa password Wi-Fi padahal laptop atau PC Windows Anda sudah terhubung ke jaringan tersebut sebelumnya? Jangan khawatir! Anda bisa melihat kembali password Wi-Fi yang tersimpan di laptop dengan mudah tanpa perlu menginstal aplikasi pihak ketiga. Cukup gunakan fitur bawaan Windows melalui Command Prompt (CMD). Berikut adalah panduan lengkap dan langkah-langkahnya:Langkah-Langkah Menampilkan Password Wi-Fi di Laptop
1. Buka Command Prompt sebagai Administrator Klik tombol Start di pojok kiri bawah layar Anda. Ketik cmd di kolom pencarian. Klik kanan pada Command Prompt, lalu pilih Run as administrator (Jalankan sebagai administrator) agar perintah dapat dieksekusi dengan hak akses penuh. 2. Tampilkan Daftar Profil Wi-Fi Setelah jendela hitam Command Prompt terbuka, ketik perintah berikut dan tekan Enter: netsh wlan show profiles Sesaat kemudian, layar akan menampilkan daftar seluruh nama jaringan Wi-Fi (profil) yang pernah tersimpan atau terhubung ke perangkat Anda di bagian User Profiles. Cari Nama Wi-Fi dan Munculkan Password Cari nama Wi-Fi target yang ingin Anda ketahui kata sandinya dari daftar di atas. 3. Ketik perintah berikut, lalu ganti kata Nama_WiFi dengan nama jaringan yang ingin Anda cek (pastikan huruf besar/kecilnya sesuai): netsh wlan show profile name="Nama_WiFi" key=clear (Contoh: netsh wlan show profile name="RumahRaya" key=clear) 4. Temukan Password pada "Key Content" Gulir teks yang muncul ke bagian bawah hingga Anda menemukan kategori Security Settings. Lihat pada baris Key Content. Tulisan atau angka yang tertera di sebelah kanan adalah password atau kata sandi dari Wi-Fi tersebut.
FAQ (Frequently Asked Questions)
Apakah cara ini bisa dipakai untuk melihat password Wi-Fi tetangga yang belum pernah saya hubungkan??
A: Tidak bisa. Cara ini hanya berfungsi untuk menampilkan kembali password dari jaringan Wi-Fi yang perangkat laptop atau PC Anda sudah pernah terhubung sebelumnya.
Q: Apakah saya harus menggunakan akses Administrator untuk menjalankan perintah ini?
A: Ya. Anda wajib membuka Command Prompt dengan mode Run as administrator, karena sistem Windows membatasi akses profil jaringan Wi-Fi demi alasan keamanan.
Q: Apakah cara melihat sandi Wi-Fi lewat CMD ini aman untuk laptop?
A: Sangat aman. Perintah netsh wlan adalah fitur dan perintah resmi bawaan dari sistem operasi Windows, jadi Anda tidak perlu khawatir merusak sistem atau menginstal aplikasi berbahaya.
Kesimpulan
Ternyata, cara melihat password wifi di laptop Windows sangatlah mudah dan bisa dilakukan tanpa bantuan aplikasi tambahan. Cukup dengan memanfaatkan fitur bawaan Command Prompt serta memasukkan perintah netsh wlan show profile, Anda bisa mengetahui kembali sandi jaringan yang pernah terhubung dalam hitungan detik. Semoga panduan ini bermanfaat dan membantu Anda yang sedang lupa password Wi-Fi!Artikel Terkait yang Mungkin Anda Suka:
Cara Mengatasi Wi-Fi "No Internet Access" di Laptop dengan Mudah
Panduan Lengkap Mempercepat Koneksi Internet di Windows 10 dan 11
Cara Berbagi Koneksi Internet Laptop Menggunakan Hotspot Bawaan