Vertically placed sample of my text file, myTxt.txt:
- 465.47 GB
Windows 7
Fully Encrypted
100%
AES 128 with Diffuser
Protection On
Unlocked
None
* =
* =
for illustration, I would like: (delimented by a tab since my report will be in text file for later "manipulation")
465.47 GB Windows 7 Fully Encrypted 100% AES 128 with Diffuser Protection On Unlocked None
the output of the report file, bitLocker.txt, shows only:
465.47 GB
the space that is leading after 465.47 GB in my file,bitLocker.txt, has 8 tab positions. some how the remaining info isn't being written and I'll accept a simple reason why too

I don't really need any of the info after "None" in the myTxt.txt file either.
my code which I believe is causing the problem of writing vertically into bitLocker.txt report:
Code: Select all
for /f "tokens=1-9" %%a in (C:\Users\%username%\Documents\MyScripts\tmp\myTxt.txt) do (
set "atrib1=%%a"
set "atrib2=%%b"
set "atrib3=%%c"
set "atrib4=%%d"
set "atrib5=%%e"
set "atrib6=%%f"
set "atrib7=%%g"
set "atrib8=%%h"
set "atrib9=%%i"
goto Nxt2
)
:Nxt2
set "CPU=!atrib1! !atrib2! !atrib3! !atrib4! !atrib5! !atrib6! !atrib7! !atrib8! !atrib9!"
set cpu1=!CPU!
echo %CPU1% >> C:\Users\%username%\Documents\MyScripts\bitLocker.txt
looking for insight on how to write vertically, i'm horizontally challenged !
