
Re: what's wrong with this loop
I am still confused by doscode's use of a TAB or his problems using a TAB. Is this a language specific issue with his version of Windows?
Not sure why he is putting the delimiter into a file.
File1.txt
Code:
Before1 After1
Before2 After2
Before3 After3
Before4 After4
delims.bat
Code:
@echo off
set "tab= "
REM Delims is a tab
(
FOR /F "Tokens=1,2 Delims= " %%G in ('type File1.txt') do echo %%G%tab%%tab%%%H
)>File2.txt
File2.txt
Code:
Before1 After1
Before2 After2
Before3 After3
Before4 After4