Banner

Cara membuat hospot melalui cmd dengan format batch

1. Buka notepad lalu ketikan text dibawah ini


@echo off



:menu

cls

echo aplikasi hospot

echo ===============

echo.

echo 1. Buat hospot baru

echo 2. Star hospot

echo 3. Stop hospot

echo 4. Keluar

set /p "pil=pilihan anda : "

if %pil% equ 1 goto buat

if %pil% equ 2 goto mulai

if %pil% equ 3 goto henti

if %pil% equ 4 goto eof

if %pil% gtr 4 goto menu



:buat

cls

color 70

echo membuat hospot baru

echo ===================

echo.

echo masukan nama hospot baru dan passwordnya

echo.

set /p "nama=nama hospot= "

set /p "kunci=password (minimal 8 karakter) = "

netsh wlan set hostednetwork mode=allow ssid=%nama% key=%kunci%

echo.

echo hospot baru telah dibuat

echo.

set /p "ulang=kembali kemenu utama? (y/t) : "

if %ulang% == y goto menu

if not %ulang% == y goto eof



:mulai

cls

netsh wlan start hostednetwork

echo.

set /p "ulang=kembali kemenu utama? (y/t) : "

if %ulang% == y goto menu

if not %ulang% == y goto eof



:henti

cls

netsh wlan start hostednetwork

echo.

echo hospot telah dihentikan

echo.

set /p "ulang=kembali kemenu utama? (y/t) : "

if %ulang% == y goto menu

if not %ulang% == y goto eof



:eof

exit


2. Save dengan format .bat , saya membuat file dengan nama format hospot.bat setelah itu buka CMD lalu ketikan lokasi file bat berada

3. berikut tampilan hospot





Jika ingin memulai hospot pilih nomor 2  jika ingin mengakhiri pilih nomor 3 dan nomor 4 untuk keluar dari program hospot .bat

semoga bermanfaat . . . .




Subscribe to receive free email updates:

0 Response to "Cara membuat hospot melalui cmd dengan format batch"

Post a Comment