Read each line in a txt file and assign variables using windows dos commands

batch-file

I am copying the files from one path to svn working copy by comparing the those 2 folders using beyond compare commandline. Report will get generated after the comparison is done using beyond compare. If any extra files are present in the right side should get deleted from svn repsotiory. So I am using a below for loop to loop through that file. I want to use svn delete for all the right orphaned files in the txt file

FOR /F "tokens=* delims= usebackq" %%x IN (%TEXT_T%) DO (

echo %%x

)

Can you please let me know how can I assign the each line in the txt file and how can I apply svn delete command for that?

Any help would be appreciated

Best Solution

It sounds like what you really want is just:

FOR /F "tokens=* delims= usebackq" %%x IN (%TEXT_T%) DO (
svn delete %%x
)