Reputation: 725
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
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
Upvotes: 5