I have multiple text files . I need to convert row To column
For e.g this file which looks like following
A
B
C
D
E
Needs to be converted into:
A B C D E
Please help.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
::===== begin batch
@echo off & setlocal enabledelayedexpansion
for /f “tokens=*” %%a in (‘dir /b /a-d *.z’) do (
set b=
for /f “tokens=*” %%b in (%%a) do (set b=!b!%%b )
echo !b!
)>%%~na.y
::======= end
I hope it’s self-explanatory: substitute desired extensions for “.z” and “.y”