Jump to content

whats in a variable


Recommended Posts

Posted

If i say

 

Set age = 7

and then call it by %age%,

whats the command to view the value in the variable ?

 

I tried "echo %age%" and it did not work ..

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: whats in a variable

 

 

"Hassan" <hassan@test.com> wrote in message

news:O0RpcHUQIHA.2268@TK2MSFTNGP02.phx.gbl...

> If i say

> Set age = 7

> and then call it by %age%,

> whats the command to view the value in the variable ?

>

> I tried "echo %age%" and it did not work ..

 

Yes, it does work. However, your variable name is not

"%age%" - it is "%age %"! You need to be a lot more

careful with your spaces. Try this instead:

 

set age=7


×
×
  • Create New...