
Re: Show /Hide on Network
I haven't tested this but there are some fixes below.
Code:
@echo off
goto :main
:main
cls
echo 1 Show on Network
echo 2 Hide on Network
echo 3 Exit
:choice
set "C="
set /P C=[1,2,3]?
if not defined c goto :choice
if "%C%"=="1" goto showit
if "%C%"=="2" goto hideit
if "%C%"=="3" goto exitit
goto :main
:showit
net config server /hidden:no
goto :EOF
:hideit
net config server /hidden:yes
goto :EOF
:exitit
exit
goto :EOF