Showing posts with label variable. Show all posts
Showing posts with label variable. Show all posts

Thursday, February 3, 2011

SNMPCONFPATH

Using snmp utils for win32... where to put snmp*.conf?

Anywhere you want, just as long as you set env variable SNMPCONFPATH to wherever you place them.

Simple, hum??

Friday, June 24, 2005

DOS shell command output to %VAR%

In Linux its quite easy to get the output of a command into a variable for future use. In Windows..., well, no quite so easy.

FOR /F %%B IN ('d:\utils\date +%%Y%%m%%d-%%H%%M') DO SET DATE=%%B

The 'date' command in this examples is the Win32 GNU port of the equivalent Linux command.

For use in CMD or BAT scripts in Windows.