Solved CMD set a variable

May 17, 2012 at 13:05:12
Specs: Windows XP
what is the difference between SET, SET /P, and SET /A? what is each one of these used for?

See More: CMD set a variable

Report •

#1
May 17, 2012 at 13:11:36
✔ Best Answer
SET by itself displays current variables
SET with a variable displays the variable
SET /A is for arithmetic expressions( rounds up to nearest integer )
SET /P allows you to set a variable equal to a line of input entered by the user

an excellent source for specifics would be typing set /? at the command prompt, or by referencing http://ss64.com/nt/set.html. If you have a specific question, be happy to help.

EDIT: Many Thanks for the fix Razor2.3
mike


Report •

#2
May 17, 2012 at 22:51:11
Mike,

Your link is NG.


=====================================
Life is too important to be taken seriously.

M2


Report •

#3
May 18, 2012 at 06:31:58
Thanks for the heads up, try http://ss64.com, then cmd on the top, then the set command.

mike


Report •
Related Solutions


Ask Question