I've seen it done before on someone else's Batch program, so I'm sure it's possible. Every time I launch my program I run a series of lines of code such as:
set/a num=0
set/a tog=1
set/a ran=%random% %%10 +1
However, I would like for certain variables to stay around, even after the program is closed. I need scripts that can:
- Write in a separate document the values of certain variables
- Check that document for values at any point in any usage session
Thanks in advance!
cdto wherever it is, and then run your script from there and just never close the command prompt./aor/p(and you only need/awhen you're doing math with variables, not when you're setting variables to numbers), then you can just usesetxinstead ofset.