|Thanks for your reply.|
I couldn't quite figure out to get this working, so i ended up adding a custom marker in the single blank tabs that i need to remove. Also had to covert , into . for other reason, so i added that as well:
:: Replace , with .
:: Remove blank single tabs by requiring custom marker ¿ in blank single tabs
:: Remove blank double tabs
@echo off > output.txt & setLocal enableDELAYedeXpansion
for /f "tokens=* delims= " %%a in (input.txt) do (
set S=!S: ¿=!
set S=!S: =!
>> output.txt echo.!S!
This is working for me and i get the right format on the output.
Any ideas on how to make the batch file go through an entire directory and pick up any *.txt files, run the batch on each file and store each new file with the original file name, but new extension *.out?