SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Computer Learning -- Ignore unavailable to you. Want to Upgrade?


To: dpl who wrote (21080)6/29/2001 3:32:18 PM
From: thecow  Read Replies (1) | Respond to of 110652
 
dpl

A quick search for 3Com DMI Agent suggests what you have already figured out. Dell open management is one of the programs that are compatible with DMI agent.

google.com

tc



To: dpl who wrote (21080)6/29/2001 5:02:13 PM
From: PMS Witch  Read Replies (2) | Respond to of 110652
 
.BAT file commands and syntax…

Part of the environment DOS maintains, is values assigned to certain strings. These strings can be used to pass information among various parts of the system.

The DOS SET command is used to place values into the environment strings.

SET TEMP=C:\TEMPDIR will set an environment variable TEMP to the value C:\TEMPDIR

The SET command alone will display all the environment variables and their values

SET [variable]=

This command will remove the variable. In our example SET TEMP= will remove the TEMP variable altogether.

The environment variables are strings. To use them, special steps must be taken. One such step is to surround them with % to indicate that the variable is wanted and not the plain text.

Example…

ECHO COMSPEC will cause the word “COMSPEC” to be printed on the screen.

ECHO %COMSPEC% will cause the value of COMSPEC to be printed on the screen.

Strings can be tested for similarity. (Or differences) To do this, they must appear within quotation marks.

Example…

Suppose an environment variable TODAY is set to the day of the week:

IF “%today%”==”Mon” ECHO Suffer
IF “%today%”==”Fri” ECHO T.G.I.F.
IF “%today%”==”Sat” ECHO Expect rain

Notice that the double equal is used as a test for equality, while the single equal is used for assignment of value.

To use the percent character, use two (%%) so that the system can differentiate between a literal entry and part of a command.

Example…

Assume gain is an environment variable set to some percentage value. (Say 15) Then this command:

ECHO A gain of %gain% %% today.

Will produce this display on the screen:

A gain of 15 % today

If this isn’t confusing enough, the percent character is also used to delineate command line parameters. These parameters are a combination of a percent character and a the numbers 1 to 9.

Example…

ECHO Hello %1

This command will cause the first value supplied on the command line to be printed following “Hello”

/*================ My .BAT file example ======================*/

These fragments can be combined to make more complex commands. I’ll include a few examples from one of my own .BAT files (with much of the repetitive stuff edited out)…

REM Be certain environment variables YEAR2 and YEAR4 are defined
if "%YEAR2%"=="" GOTO ERROR
if "%YEAR4%"=="" GOTO ERROR

REM If I forget to supply the value, remind me before quitting
IF “%1”==”” ECHO You forgot MSFT’s share price
IF “%1”==”” GOTO ERROR
COPY D:\monthly\msft%YEAR2%.%MONTH% F:\monthly\msft%YEAR2%.new >NUL

REM Add prices to working copy of data files, then display graph
echo %1>> F:\monthly\msft%YEAR2%.new

REM Make working files permanent
copy F:\monthly\msft%YEAR2%.new D:\monthly\MSFT%YEAR2%.%MONTH% >NUL

REM Execute a program to record today’s stock prices
D:\today\today %1 %2 %3 %4 %5 %6 %7 %8 RECORD

REM Write a file, CHANGE.BAT which will accept price changes
echo TODAY %1+(%%1) %8 > D:\today\CHANGE.BAT

:ERROR
REM Just leave

In my example .BAT file, double double quotes (“”) are used to indicate empty, or undefined values. Also, notice that I’m using environment variables to piece together file names. Today, the file names would become MSFT01.JUN and MSFT01.NEW as the environment variable values are combined with literal values to become filenames.

My program TODAY takes its command line values from those supplied to the .BAT file. The last value, RECORD is passed as is, since it recognises RECORD as a valid parameter.

Writing CHANGE.BAT…

My .BAT file creates CHANGE.BAT by using values given currently, combined with values supplied later. Note that the double percent (%%) becomes single. Typical contents becomes…

TODAY 72.74+(%1) 1.5222

And when executed with a parameter, say 1.20, performs the command TODAY 72.74+(1.20) 1.5222 as the 1.2 is substituted for the %1 parameter.

/*================ End ===================*/

In your post, I’d assume what’s happening is the value of the environment variable OS % is being tested for the string value "windows-nt" and COMSPEC is being tested for the value “c:\windows\comand.com”

Based on the results of these tests, other environment variables take new values through the SET command.

You could type SET in a MS-DOS window and determine all current environment string values. Perhaps posting these values will shed additional light on the matter.

Cheers, PW.