blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search:
index.gif

ntcmds00000000.gif

Set--Notes

Displaying the current environment settings

When you type the set command alone, Windows NT displays the current environment settings. These settings usually include the comspec and path environment variables that Windows NT uses to help find programs on disk. Prompt and dircmd are two other environment variables that Windows NT uses.

Using parameters

When you use a set command and specify values for both variable and string, Windows NT adds the specified variable value to the environment and associates the string with that variable. If variable already exists in the environment, the new string value replaces the old string value.

If you specify only a variable and an equal sign (without a string) for the set command, Windows NT clears the string value associated with the variable (as if the variable is not there at all).

Using set in batch files

When creating batch files, you can use the set command to create variables and use them in the same way as you would the numbered variables %0 through %9. You can also use the variables %0 through %9 as input for the set command.

Calling a set variable from a batch file

When you call a variable value from a batch file, you must enclose the value with percent signs (%). For example, if your batch program creates an environment variable named baud, you can use the string associated with baud as a replaceable parameter by inserting %baud% on the command line.

More Information About Set

ntcmds00000001.gif Set--Examples

ntcmds00000001.gif Set

Cotse.Net

Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

 
.
www.cotse.com
Have you gone to church today?
.
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 Cotse.com.
Cotse.com is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609