Windows – How to open multiple local HTML files in Google Chrome at once

google-chromehtml-fileswindowswindows 8

Using Google Chrome Dev Channel on Windows, I have multiple local HTML files in one folder:

directory contents

And I want to open them all at once in one Google Chrome window as separate tabs:

google chrome with multiple tabs

What I tried and did not succeed:

  • Selecting all files in Windows Explorer and dragging them into Chrome (only one file was opened)
  • Selecting all files in Windows Explorer and right-clicking then "Open" (a blank new Chrome window opened)
  • Selecting all files in Windows Explorer and pressing Enter (a blank new Chrome window opened)
  • Using the file open dialog in Chrome (only single selection supported)

So what seemed to be a trivial task to me seems to actually be impossible.

How can I open multiple local HTML files at once in Google Chrome?

Best Answer

I'm not sure if this is the best solution, but it worked for me. This was previously answered here.

You can just create a new text file and change the file extension to .bat then type something like this:

start chrome.exe http://www.google.com
start chrome.exe file-path-here    
start chrome.exe another-file-here

Then all you have to do is double click that file and they'll all open up in different tabs.