Opening Multiple Files using a Batch File

If you have been looking out for a simple way to open multiple files, then you can create a batch file and specify the files to open. This example assumes that there are 2 text and 1 pdf file in a folder. Follow these steps to open all of them at once:

Open Notepad and copy and paste the lines below:

@echo off
start Copy1.txt
start Copy2.txt
start Copy3.pdf

Save the notepad file with the .bat extension in the same folder where the .txt and .pdf files are kept. Now to open all these files at once, just execute the .bat file by double clicking it






About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

1 comment:

Tw said...

Doesn't seem to work.
It just opens multiple cmd windows