MS-DOS

From vwiki
Revision as of 22:36, 28 March 2013 by Sstrutt (talk | contribs) (→‎Pinger: Added annotations)
Jump to navigation Jump to search

Useful Scripts

Pinger

This script allows you to launch multiple new instances of continuous pings

@echo Off

REM If there's a 2nd command line param (eg :START) go to it
If not "%2"=="" GoTo %2

:GETIP
set /P IP=Enter address to ping: 

echo Starting new window to ping %IP%
echo.

REM Start a new command shell with this script and command line args of %IP% :START 
start Cmd /C %0 %IP% :START
goto :GETIP

:START
title %1
@echo on
ping -t %1
@echo off
ping 127.0.0.1 > NUL
:END