I have an batch script that needs to concatenate several hundred of lines (72 chars) in one long line for base64 to decode. He used line reading because of the windows XP line limit (8191 chars per line).
The script currently has 2 issues at result:
It exports with 2xquote character between my 72 char lines (like so: "addf4534@$") and base64 doesn't like that
It creates several 2-3 lines extra. The last line being the correct one.
Here is the script (install.zip its what is going to be encoded for later decoding):
CALL D:\utilities\base64.exe -e install.zip install.txt
::call :concat with %%a between double quotes because the two equal characters at the end of the string won't be removed
for /f "tokens=1 delims=¶" %%a in (install.txt) do call :concat "%%a"
::now remove all double quotes from the string (safe because base64 doesn'd use double quotes in encoding)
set /A lines+=1
if %lines%==50 (
Can you help me with fixing it? Thanks
Related Article:how can i convert xml file to batch file
is a Software Development discussion thread by hassanumair1 that has 2 replies, was last updated 11 months ago and has been tagged with the keywords: xml, batch, bat, convert, perl, sync, backup, script, commandline, dos.