Skip to content

Instantly share code, notes, and snippets.

@debboutr
Created December 22, 2017 23:48
Show Gist options
  • Save debboutr/43d48738d6b88ef6acb03c2177fb2f9f to your computer and use it in GitHub Desktop.
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
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