Thank you, but I get:
delims==" was unexpected at this time
and the
echo %string%>!%FileName%
was there to differentiate a crypted file and a non crypted file.
And i am aware that this will only work for one line, but i am planning on looping it much like this:
:loop
find /c " " data\accounts\%AccName%\bank.txt>data\temp\linecount\%AccName%.txt
for /f "tokens=1,2,3 delims= " %%A in ('type data\temp\linecount\%AccName%.txt ^| find "BANK.TXT:"') do (
set count=%%C
)
set /a id=%id%+1
for /f "tokens=1,2,3 delims=:" %%A in ('type data\accounts\%AccName%\bank.txt ^| find "=%id%="') do (
set itemidno=%%B
set itemq=%%C
)
for /f "tokens=1,2,3 delims=:" %%A in ('type data\item\items.txt ^| find "ID=%itemidno%="') do (
set itemn=%%B
set itemp=%%C
)
set /a itemw=%itemp%*%itemq%
echo %itemq% x %itemn% [%itemw%]
if %ID% NEQ %count% (
goto loop
)