08-12-2008, 07:52 AM
hi i made this batch (first one iv ever made) :)
@echo off
color 40
:intro
cls
echo ###############################################################################
echo . .
echo ao27893's Network tool
echo . .
echo Version 1.0
echo . .
echo ###############################################################################
echo loading...........
:i
Echo type r to restart a computer on your network
echo type s to Shutdown a computer on your network
set /p q=r/s:
if %q%==r goto r
if %q%==s goto s
cls
echo invalid key try again
pause >nul
goto intro
:r
cls
echo Type user to restart
set /p n=User:
shutdown -r -m \\%n% -t 30 -c "computer has been shutdown by Your admin"
cls
echo did you want to abourt this? y/n
set /p g=y/n:
if %g%==y goto 52
if %g%==n goto 51
:52
shutdown -a -m \\%n%
cls
goto intro
:51
echo restart was not abourt
pause >nul
Goto intro
:S
cls
echo Type user to shutdown
set /p n=User:
shutdown -s -m \\%n% -t 15 -c "computer has been shutdown by Your admin"
cls
echo did you want to abourt this? y/n
set /p g=y/n:
if %g%==y goto 52
if %g%==n goto 51
:52
shutdown -a -m \\%n%
cls
goto intro
:51
echo restart was not abourt
pause >nul
Goto intro
there some spelling mistakes in there
@echo off
color 40
:intro
cls
echo ###############################################################################
echo . .
echo ao27893's Network tool
echo . .
echo Version 1.0
echo . .
echo ###############################################################################
echo loading...........
:i
Echo type r to restart a computer on your network
echo type s to Shutdown a computer on your network
set /p q=r/s:
if %q%==r goto r
if %q%==s goto s
cls
echo invalid key try again
pause >nul
goto intro
:r
cls
echo Type user to restart
set /p n=User:
shutdown -r -m \\%n% -t 30 -c "computer has been shutdown by Your admin"
cls
echo did you want to abourt this? y/n
set /p g=y/n:
if %g%==y goto 52
if %g%==n goto 51
:52
shutdown -a -m \\%n%
cls
goto intro
:51
echo restart was not abourt
pause >nul
Goto intro
:S
cls
echo Type user to shutdown
set /p n=User:
shutdown -s -m \\%n% -t 15 -c "computer has been shutdown by Your admin"
cls
echo did you want to abourt this? y/n
set /p g=y/n:
if %g%==y goto 52
if %g%==n goto 51
:52
shutdown -a -m \\%n%
cls
goto intro
:51
echo restart was not abourt
pause >nul
Goto intro
there some spelling mistakes in there
