Created
December 22, 2017 23:48
-
-
Save debboutr/43d48738d6b88ef6acb03c2177fb2f9f to your computer and use it in GitHub Desktop.
script to make a bat file that will open all html files in a directory
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
import os | |
here = 'path/to/htmls' | |
with open('%s/chrome.bat' % here,'w') as bat: | |
for f in os.listdir(here): | |
if f[-4:] == 'html': | |
bat.write('start chrome.exe %s/%s\n' % (here, f)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment