CODE: [Copy to clipboard]@echo off del __new.bat 2>nul for /f "tokens=1*" %%a in (test.txt) do ( echo %%a /s %%b>>__new.bat ) start notepad __new.bat