To be honest I checked the post http://www.computing.net/answers/pr... and I didn't understand the examples mentioned there... so could someone help me? For example, I have 3 text files, each one with three lines. I'd like to merge them in a unique text file in columns... As far I could understand I did the code below where it could check the number of text files and lines that the final text file should have :
echo off & setlocal enableDelayedExpansion
for /f %%a in ('dir /b *.txt ^| find /c /v ""') do (
set f = %%a
for /f %%b in ('dir /b *.txt') do (
for /f %%c in (%%b) do (
set l += 1
set /A t = !l!/!f!
echo This report should have !f! columns and !t! lines.
for /l %%d in (1,1,!f!) do (
echo Line %%d
Thank you in advance.