November 14, 2009

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



'Like' us on our FaceBook page if you find this blog useful. Thanks!


Did you like this post?
kick it on DotNetKicks.com Save on Delicious
subscribe via rss subscribe via e-mail
print this post follow me on twitter


About The Author

Suprotim Agarwal, ASP.NET Architecture MVP 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 has also written an EBook 51 Recipes using jQuery with ASP.NET Controls.

Follow him on twitter @suprotimagarwal

comments

0 Responses to "Opening Multiple Files using a Batch File"
 

Copyright © 2009-2012 All Rights Reserved for DevCurry.com by Suprotim Agarwal | Terms and Conditions