technocrat
technocrat

Reputation: 725

need to insert this in a bat file

This script auto generates the image tag, but i need to put this command into a windows bat file. This piece of code works fine when written in cmd window.

FOR %i IN (*.JPG) DO ECHO ^<img src="%i" /^> >> index.html

Thanks and Regards

Upvotes: 0

Views: 154

Answers (1)

GoAvs
GoAvs

Reputation: 103

In batch files you need to use %%variable format instead of %variable

Try this:

FOR %%i IN (*.JPG) DO ECHO ^<img src="%%i" /^> >> index.html

MSDN reference

Upvotes: 5

Related Questions