summaryrefslogtreecommitdiff
path: root/win32/local/mib2c.bat
diff options
context:
space:
mode:
Diffstat (limited to 'win32/local/mib2c.bat')
-rw-r--r--win32/local/mib2c.bat26
1 files changed, 26 insertions, 0 deletions
diff --git a/win32/local/mib2c.bat b/win32/local/mib2c.bat
new file mode 100644
index 0000000..2b13f1b
--- /dev/null
+++ b/win32/local/mib2c.bat
@@ -0,0 +1,26 @@
+@echo off
+set MYPERLPROGRAM=c:\usr\bin\mib2c
+
+perl -v > NUL 2>&1
+if ERRORLEVEL 1 goto no_perl
+rem Perl found!
+
+if "%OS%"=="Windows_NT" goto winnt
+perl "%MYPERLPROGRAM%" %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 %11 %12 %13 %14 %15
+goto end
+
+:winnt
+perl "%MYPERLPROGRAM%" %*
+goto end
+
+:no_perl
+echo %MYPERLPROGRAM% requires Perl to run.
+echo .
+echo A version of Perl for Windows is available from
+echo http://www.activestate.com/Products/ActivePerl
+echo .
+echo Please install Perl and run this program again.
+echo .
+pause
+
+:end