Search found 3 matches

by smokeys_13
02 Jan 2010 08:09
Forum: DOS Batch Forum
Topic: File reading and extracting parts of strings
Replies: 3
Views: 4915

Thanks

Oh yeah, of course.... silly me. I've got pointless lines of code in there haven't I -- thanks for pointing that out!
by smokeys_13
01 Jan 2010 14:59
Forum: DOS Batch Forum
Topic: File reading and extracting parts of strings
Replies: 3
Views: 4915

Sorted it!

Never mind, I've sorted it now the new code is below for anyone that had a similar question. setLocal EnableDelayedExpansion for /f "tokens=* delims= " %%a in (running_tasks.txt) do ( set /a N+=1 set v!N!=%%a for /f "tokens=1 delims= " %%a in ("%%a")...
by smokeys_13
01 Jan 2010 14:02
Forum: DOS Batch Forum
Topic: File reading and extracting parts of strings
Replies: 3
Views: 4915

File reading and extracting parts of strings

Hi, my current code stands as this: setLocal EnableDelayedExpansion for /f "tokens=* delims= " %%a in (running_tasks.txt) do ( set /a N+=1 set v!N!=%%a ) Which works fine, but its putting the whole line into each variable. Is there a way to only set the variables to the beg...