Show /Hide on Network
Posted: 03 Mar 2012 01:51
I have the script as follows:
So it can work well?
@echo off
goto main
:main
cls
echo 1 Show on Network
echo 2 Hide on Network
echo 3 Exit
:choice
set /P C=[1,2,3]?
if "%C%"=="1" goto showit
if "%C%"=="2" goto hideit
if "%C%"=="3" goto exitit
:showit
net config server /hidden:no
:hideit
net config server /hidden:yes
:exitit
exit
So it can work well?