Necesito ayuda con este batch. Lo que quiero es que cuando mi prima encienda su maquina que tiene W7, se active en el arranque wifi virtual port y me comparta conexion a internet
Ayudenme please :-*
@echo off
netsh wlan set hostednetwork mode-allow ssid-WIFILAN Key-12345678>nul
netsh wlan start hostednetwork>nul
:start
SET CONNECT=SI>nul
ping -n 1 ejemplo.com -W 2000>nul
echo .
ping -n 16 127.0.0.1>nul
IF NOT ERRORLEVEL 1 GOTO SI
IF ERRORLEVEL 1 SET CONNECT=NO
ECHO %CONNECT% tienes conexion a internet en este momento
PING 1.1.1.1 -n 10 -w 2000 >NUL
CLS
goto start
pause>nul
EXIT
:SI
ECHO Estas conectado a internet
PING 1.1.1.1 -n 1 -w 2000 >NUL
CLS
GOTO START
pause>nul