@Echo Off Set Temp=%1 Set Output= :Loop Set Output=%Temp:~0,1%%OutPut% Set Temp=%Temp:~1,999% if not "%Temp%"=="" goto loop Echo %Output%