Created
September 16, 2016 09:24
-
-
Save mingl0280/2392002e5e1edf5480309ad098ad6ff8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
@echo Generating... | |
@echo ^<html^> > _index.html | |
@echo ^<head^> >> _index.html | |
@echo ^<style^> >> _index.html | |
@echo img{width:70%%;} >> _index.html | |
@echo body{text-align:center;} >> _index.html | |
@echo ^</style^> >> _index.html | |
@echo ^</head^> >> _index.html | |
@echo ^<body^> >> _index.html | |
for %%i in (*.jpg,*.png) do ( if not exist "%%~ni__highres.jpg" echo ^<img src="%%i" /^>^<br /^> >> _index.html ) | |
@echo ^</body^> >> _index.html | |
@echo ^</html^> >> _index.html | |
@echo GenComplete. | |
pause | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment