Utak Atik CMD DI kompi anda
1. Kalkulator
2. kalkulator Pembagian
3. Kalkulator Penjmlahan
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
4. Matikan Firewall
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
5. Nonaktifkan Windows Security Center
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
6. Aktifkan Windows FireWall
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
7. Aktifkan Windows Security Center
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
echo offSimpan file dgn extensi .bat contoh justinisal.bat Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
mode 47,30
color fc
Title Kalkulator Sederhana justinisal on HN
cls
echo PETUNJUK
echo Cara kerja kalkulator ini adalah dengan
echo memasukkan angka lalu apakah angka tersebut
echo akan dikali(*) dibagi(/) dikurang(-) atau
echo ditambahkan(+).
echo Contoh :5*6-4 berarti 5 dikali 6 dikurang 4
pause
:start
::Clear variable
set "op="
set "result="
echo ===============================================
echo ---------------------------------------
echo Kalkulator Sederhana
echo ---------------------------------------
echo ===============================================
echo.
echo.
set /p op=Operasi :
set /a Hasil=%op%
:Hasil
cls
echo ===============================================
echo ---------------------------------------
echo Kalkulator Sederhana
echo ---------------------------------------
echo ===============================================
echo.
echo Hasil :
echo -----------------------
echo %op% = %Hasil%
echo -----------------------
set "ans="
set /p ans=Lanjut (ok/ogah)
if /i "%ans%" equ "ok" goto start
if /i "%ans%" equ "ogah" exit
goto Hasil
2. kalkulator Pembagian
@echo offSimpan file dgn extensi .bat justinisal.bat Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
mode 40,20
color fc
Title justinisal on HN kalkulator 2 angka koma
echo ========================================
echo ---------------------------------
echo Kalkulator sederhana giezy on HN
echo ---------------------------------
echo ========================================
pause
:start
cls
set "a="
set "b="
set "k1="
set "k2="
echo --------------------------------------
echo Pembagian 2 angka dibelakang koma
echo --------------------------------------
echo giezy on HN
echo -----------
echo.
echo Operasi = A /B
setlocal
set /p a=Tentukan Nilai A:
set /p b=Tentukan Nilai B:
set /A x=a/b
set /a k1=(a-x*b)*10/b
set /a k2=((a-x*b)*10-(k1*b))*10/b
if errorlevel 1 goto start
if /i %k1% lss 0 set /a k1=0-k1
if /i %k2% lss 0 set /a k2=0-k2
:next
echo.
echo Hasil Pembagian= %x%,%k1%%k2%
:con_loop
set "ans="
set /p ans=Lanjut (ok/ogah)
if /i "%ans%" equ "ok" goto start
if /i "%ans%" equ "ogah" exit
goto con_loop
3. Kalkulator Penjmlahan
@echo offSimpan file dgn extensi .bat contoh justinisal.bat
mode 40,20
color fc
Title justinisal on HN Penjumlahan Sederhana
echo ==================================
echo ------------------------
echo Penjumlahan Sederhana
echo ------------------------
echo ==================================
echo.
:start
echo Operasi C=A+B
setlocal
set /p A=tentukan nilai A:
set /p B=tentukan nilai B:
set /a C=A+B
echo Hasilnya C=%C%
:con_loop
set "ans="
set /p ans=Lanjut (ok/ogah)
if /i "%ans%" equ "ok" goto start
if /i "%ans%" equ "ogah" exit
goto con_loop
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
4. Matikan Firewall
@echo offSimpan file dgn extensi .bat contoh justinisal.bat
Title Justinisal NWF
Color fc
mode 55,45
echo =======================================
echo -----------------------------------
echo Nonaktifkan Windows FireWall
echo -----------------------------------
echo =======================================
echo By:giezy on HN
echo.
echo.
echo.
pause
echo.
echo.
echo Klik Sembarang Untuk me-nonaktifkan Windows FireWall
echo.
echo.
pause
echo.
netsh firewall set opmode mode=disable
echo.
pause
echo.
echo.
echo ================================
echo Patch Selesai
echo ================================
echo.
pause
Exit
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
5. Nonaktifkan Windows Security Center
@echo offSimpan file dgn extensi .bat contoh justinisal.bat
Title justinisal on HN NWSC
Color fc
mode 59,45
echo =======================================
echo -----------------------------------
echo Nonaktifkan Windows Security Center
echo -----------------------------------
echo =======================================
echo By:giezy on HN
echo.
echo.
echo.
pause
echo.
echo.
echo Klik Sembarang Untuk menonaktifkan Windows Security Center
echo.
echo.
pause
echo.
net stop "Security Center"
echo.
pause
echo.
echo.
echo ================================
echo Patch Selesai
echo ================================
echo.
pause
Exit
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
6. Aktifkan Windows FireWall
@echo offSimpan file dgn extensi .bat contoh justinisal.bat
Title justinisal on HN AWF
Color fc
mode 55,45
echo =======================================
echo -----------------------------------
echo Aktifkan Windows FireWall
echo -----------------------------------
echo =======================================
echo By:giezy on HN
echo.
echo.
echo.
pause
echo.
echo.
echo Klik Sembarang Untuk aktifkan Windows FireWall
echo.
echo.
pause
echo.
netsh firewall set opmode mode=enable
echo.
pause
echo.
echo.
echo ================================
echo Patch Selesai
echo ================================
echo.
pause
Exit
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
7. Aktifkan Windows Security Center
Simpan file dgn extensi .bat contoh justinisal.bat@echo off
Title justinisal on HN AWSC
Color fc
mode 59,45
echo =======================================
echo -----------------------------------
echo Aktifkan Windows Security Center
echo -----------------------------------
echo =======================================
echo By:giezy on HN
echo.
echo.
echo.
pause
echo.
echo.
echo Klik Sembarang Untuk mengaktifkan Windows Security Center
echo.
echo.
pause
echo.
net start "Security Center"
echo.
pause
echo.
echo.
echo ================================
echo Patch Selesai
echo ================================
echo.
pause
Exit
Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.
0 komentar:
Posting Komentar