@echo off


:menu 
cls
echo MENU
echo:
echo Press a number to run the desired operation
echo:
echo 1. Test your network adaptor to see if it is running - PING 127.0.0.1
echo 2. Run ipconfig 
echo 3. Release current IP address
echo 4. Renew adaptor's IP address
echo 5. Flush cache
echo 6. Stop the print spooler
echo 7. Start the print spooler
echo 8. Display user id and SID
echo:
echo Press q to quit this batch file

set /p choice="Enter the number of the operation you'd like to run: "

if "%choice%"=="1" goto one
if "%choice%"=="2" goto two
if "%choice%"=="3" goto three
if "%choice%"=="4" goto four
if "%choice%"=="5" goto five
if "%choice%"=="6" goto six
if "%choice%"=="7" goto seven
if "%choice%"=="8" goto eight
if "%choice%"=="q" exit

:one
	ping 127.0.0.1
pause
goto menu

:two
	ipconfig
pause
goto menu

:three
	ipconfig /release
pause
goto menu


:four
	ipconfig /renew
pause
goto menu


:five
	ipconfig /flushdns
pause
goto menu


:six
	net stop spooler
pause
goto menu


:seven
	net start spooler
pause
goto menu


:eight
	whoami /user
pause
goto menu