18/01/11

Hasil dari CMD "It's True"

Ini Adalah Contoh File yg dihasilkan Dari CMD.
Ok Kita Langsung Ke TKP.......

1. Kalkulator

Quote:echo off
mode 47,30
color fc
Title Kalkulator Sederhana giezy 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

Simpan file dgn extensi .bat contoh giezy_on_hn.bat

Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.

2. kalkulator Pembagian

Quote:@echo off
mode 40,20
color fc
Title Giezy 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

Simpan file dgn extensi .bat contoh giezy_on_hn.bat

Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.

3. Kalkulator Penjmlahan

Quote:@echo off
mode 40,20
color fc
Title giezy 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

Simpan file dgn extensi .bat contoh giezy_on_hn.bat

Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.

4. Matikan Firewall

Quote:@echo off
Title giezy on HN 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

Simpan file dgn extensi .bat contoh giezy_on_hn.bat

Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.

5. Nonaktifkan Windows Security Center

Quote:@echo off
Title giezy 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

Simpan file dgn extensi .bat contoh giezy_on_hn.bat

Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.


6. Aktifkan Windows FireWall

Quote:@echo off
Title giezy 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

Simpan file dgn extensi .bat contoh giezy_on_hn.bat

Buat Echo,mode,color dan title bisa diganti sesuai dgn selera.

7. Aktifkan Windows Security Center

Quote:@echo off
Title giezy 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

Simpan file dgn extensi .bat

0 komentar:

Poskan Komentar

Mini Fordis b3gund4L