Search found 3 matches
- 02 Jan 2010 08:09
- Forum: DOS Batch Forum
- Topic: File reading and extracting parts of strings
- Replies: 3
- Views: 4933
Thanks
Oh yeah, of course.... silly me. I've got pointless lines of code in there haven't I -- thanks for pointing that out!
- 01 Jan 2010 14:59
- Forum: DOS Batch Forum
- Topic: File reading and extracting parts of strings
- Replies: 3
- Views: 4933
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")...
- 01 Jan 2010 14:02
- Forum: DOS Batch Forum
- Topic: File reading and extracting parts of strings
- Replies: 3
- Views: 4933
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...