Step 2SET Command - String Theory (1/4)
Ah. Variables. The developer's ambrosia. Variables are bits of memory which are... err, variable. No IFs ANDs or NOTs about it! (lol, sorry). Ok! So how's this baby work?
Very simply, the parameters of the SET command are:
SET VariableName=Variable Value
SET by itself will create string variables.
SET TestVS=Test Variable String!
In this case, we just stored the value "Test Variable String!" into the variable TestVS.
Well that's all fun and games, but how do we retrieve the variable value? We use %.
Just add % around the variable name.
ECHO %TestVS%
Ok cool, but what else can it do?
| « Previous Step | Download PDFView All Steps | Next Step » |
















































IF you thought they were batch commands AND NOT just in regular old all caps, you got it!