File reading and extracting parts of strings
Posted: 01 Jan 2010 14:02
Hi, my current code stands as this:
Which works fine, but its putting the whole line into each variable. Is there a way to only set the variables to the beginning of the line ending after ".exe"?
Any help would be greatly appreciated
Code: Select all
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 beginning of the line ending after ".exe"?
Any help would be greatly appreciated