I have a file with records that looks like the following:
Aaron,Daniel,,,AARDA,MEDICAL,10,HEH
I need a batch file that can look to the correct comma and insert quotes as well as add a comma to the end of the file.
I have this batch file which successfully adds quotes to the beginning of each line:
@echo
setLocal EnableDelayedExpansion
for /f "tokens=* delims= " %%a in (input.txt) do (
set /a N+=1
echo ^"%%a >>output.txt
)
What I need is for the output to look like:
"Aaron,Daniel,,",AARDA,MEDICAL,10,HEH,