CODE: [Copy to clipboard]@echo off cd /d D:\images for %%a in (*.jpg) do >>test.txt echo ^<IMG src="http://www.test.com/upfile/%%a" border=0^>