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

Will you give this article a +1 ? Thanks in advance

About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 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