Click here for important information about

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

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 If you have a specific question, be happy to help.

EDIT: Many Thanks for the fix Razor2.3

Report •

May 17, 2012 at 22:51:11

Your link is NG.

Life is too important to be taken seriously.


Report •

May 18, 2012 at 06:31:58
Thanks for the heads up, try, then cmd on the top, then the set command.


Report •
Related Solutions

Ask Question