Search found 2 matches

by mastermindg
10 Mar 2009 17:35
Forum: DOS Batch Forum
Topic: Multiple Variables Outputted in Table Format
Replies: 1
Views: 4417

I figured it out: For /F "tokens=1*" %%i in (input.txt) do call :doSomething "%%i" goto :eof :dosomething Set myvariable=%~1 for /f "tokens=2-4 delims=/ " %%b in ('TYPE E:\temp\%myvariable%\cpu.txt') do ( set CPUPercent_Used=%%d ) for /f "to...
by mastermindg
10 Mar 2009 16:02
Forum: DOS Batch Forum
Topic: Multiple Variables Outputted in Table Format
Replies: 1
Views: 4417

Multiple Variables Outputted in Table Format

I've got multiple variables that I'm pulling from multiple text files in multiple locations. What I'd like to do is to put the location and variables in a table so that it is easily read: FOR /F %%a IN ('TYPE input.txt') DO ( for /f "tokens=2-4 delims=/ " %%b in ('TYPE E:\t...