Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi All,
I have a little problem...
i have a lot of txt files like this
NAME NUMBER
Jonh 157
Tom 198and i want to create only one file containing all the data without the headline been repeated
ps. i would like to open it with excel also
regards,
Paul.

@echo off & setLocal EnableDELAYedExpansion
> newfile echo NAME NUMBER
for /f "tokens=* delims= " %%a in ('dir/b/a-d *.txt') do (
for /f "skip=1 tokens=* delims= " %%i in (%%a) do (
>> newfile echo %%i
)
)
=====================================
Helping others achieve escape felicityM2

![]() |
Automate Dell Tag detail ...
|
doubt in batch file
|
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |