|
Packit |
b802ec |
@echo off
|
|
Packit |
b802ec |
rem
|
|
Packit |
b802ec |
rem mtr -- a network diagnostic tool
|
|
Packit |
b802ec |
rem Copyright (C) 2016 Matt Kimball
|
|
Packit |
b802ec |
rem
|
|
Packit |
b802ec |
rem This program is free software; you can redistribute it and/or modify
|
|
Packit |
b802ec |
rem it under the terms of the GNU General Public License version 2 as
|
|
Packit |
b802ec |
rem published by the Free Software Foundation.
|
|
Packit |
b802ec |
rem
|
|
Packit |
b802ec |
rem This program is distributed in the hope that it will be useful,
|
|
Packit |
b802ec |
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
b802ec |
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
b802ec |
rem GNU General Public License for more details.
|
|
Packit |
b802ec |
rem
|
|
Packit |
b802ec |
rem You should have received a copy of the GNU General Public License
|
|
Packit |
b802ec |
rem along with this program; if not, write to the Free Software
|
|
Packit |
b802ec |
rem Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Packit |
b802ec |
rem
|
|
Packit |
b802ec |
|
|
Packit |
b802ec |
rem Assume the path of this batch file is the mtr installation location
|
|
Packit |
b802ec |
set "MTR_DIR=%~dp0"
|
|
Packit |
b802ec |
|
|
Packit |
b802ec |
set "MTR_BIN=%MTR_DIR%\bin"
|
|
Packit |
b802ec |
|
|
Packit |
b802ec |
rem ncurses needs to locate the cygwin terminfo file
|
|
Packit |
b802ec |
set "TERMINFO=%MTR_DIR%\terminfo"
|
|
Packit |
b802ec |
|
|
Packit |
b802ec |
rem mtr needs to know the location to the packet generator
|
|
Packit |
b802ec |
set "MTR_PACKET=%MTR_BIN%\mtr-packet.exe"
|
|
Packit |
b802ec |
|
|
Packit |
b802ec |
rem Pass along commandline arguments
|
|
Packit |
b802ec |
"%MTR_BIN%\mtr" %*
|