Simple SNMP Query Tool - Open Source - C# (C-sharp)
Compiler script
@echo off
cls
cd /d %~dp0..
if exist "%windir%\Microsoft.NET\Framework\v1.1.4322\csc.exe" (
echo Compiling for .NET Framework v1.1
echo.
"%windir%\Microsoft.NET\Framework\v1.1.4322\csc.exe" /define:NET11 /t:exe /debug+ /out:ssnmpq.exe src\*.cs
if errorlevel 1 pause & goto end
)
if exist "%windir%\Microsoft.NET\Framework\v2.0.50727\csc.exe" (
echo Compiling for .NET Framework v2.0
echo.
"%windir%\Microsoft.NET\Framework\v2.0.50727\csc.exe" /define:NET20 /t:exe /debug+ /out:ssnmpq2.exe src\*.cs
if errorlevel 1 pause & goto end
)
if exist "%windir%\Microsoft.NET\Framework\v2.0.50727\csc.exe" (
echo Running .NET Framework v1.1 version
echo.
ssnmpq.exe /h:localhost
)
if exist "%windir%\Microsoft.NET\Framework\v2.0.50727\csc.exe" (
echo Running .NET Framework v2.0 version
echo.
ssnmpq2.exe /h:localhost
)
pause
:end
%0