I am not really sure how to explain what I need help with, but I will try. I have an item, and the values for this item is stored in a file. But, I want the details to be completely manipulated by the file. I want to change one variable in the file, but keep the others the same. I am sure there is a very easy way to do this, and if there is please explain but I was thinking along the lines of like so:
Code: Select all
(
echo set %itemname1%=%itemname1%
echo set %itemname1%value=%%itemname1%value%
echo set %itemname2%=%itemname2%
echo set %itemname2%value=true
) > Datafile.bat
But as you can see, I don't think you can have more percent signs in a variable. It is really hard for me to explain, but I just want to, lets say, change item 2 to true, but keep all the details of item 1 the same. Sorry if I am being to vague, but I am really confused myself.
Thanks if you can understand what I mean.
Matt