Search found 2 matches

by Pineapplesoft
15 Dec 2014 06:26
Forum: DOS Batch Forum
Topic: [SOLVED] Turning data from a file to variables
Replies: 6
Views: 5009

Re: Turning data from a file to variables

foxidrive wrote:
Pineapplesoft wrote:Now if I want to turn each line into a different variable


Give examples of what you mean - it's not clear to someone else reading what you have written.


Like line 1=%color%
line 2=%refreshtime%
line 3=%title%
by Pineapplesoft
13 Dec 2014 07:48
Forum: DOS Batch Forum
Topic: [SOLVED] Turning data from a file to variables
Replies: 6
Views: 5009

[SOLVED] Turning data from a file to variables

EDIT: Here is a configuration file for my batch: color=1 refreshtime=3 title=test Here is my code that picks up the right parts; for /f "tokens=2 delims==" %%a in (console.settings) do ( set data=%%a ) Now if I want to turn each line into a different variable, what code should I use?