This video gives a detailed solution to double_char in coding bat. It uses Python.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.