Batch file :How to set a variable inside a loop for /F

Please Visit: http://ift.tt/1ajReyV



Batch file :How to set a variable inside a loop for /F

http://ift.tt/1mBWzeg

1. setlocal enabledelayedexpansion and use !!

2. Create a batch function using batch goto labels :Label.

for /F "tokens=*" %%a in ('type %FileName%') do call :Foo %%a

goto End



:Foo

set z=%1

echo %z%

echo %1

goto :eof



http://ift.tt/KAi7t8

use CALL SET instead of delayed expansion.????

http://ift.tt/KAi6p4

CALL SET _result=%%%_var%%%



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1mBWzeg

via LifeLong Community

No comments:

Post a Comment