loops - Set line as variable then execute script -


i'm working on script:

@echo off /f "tokens=*" %%f in (filenames.txt) set filename=%%f echo %filename% pause 

the problem echos last line in "flienames.txt" , need them in order 1 one.

here can read more loops in batch-file. in case code should this:

@echo off setlocal enabledelayedexpansion /f "tokens=*" %%f in (filenames.txt) (   set filename=%%f   echo !filename! ) pause 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -