Batch Script: Open multiple Files simultaneously without waiting
Question by Compi | 2017-09-26 at 15:20
I would like to open multiple text files with the Windows Editor at the same time. I have created the following Batch Script for this task:
notepad C:\Folder\File1.txt notepad C:\Folder\File2.txt notepad C:\Folder\File3.txt notepad C:\Folder\File4.txt notepad C:\Folder\File5.txt
The problem with this script is, that the batchscript opens the first file with the Editor correctly, but not the second file coincidentally. Every time, the script is waiting for the Editor to close before it proceeds with opening the next file.
However, I want to open all files simultaneously in 5 different Editor windows. How to make the script not to stop?
Related Topics
How to Replace multiple Texts at the same Time
Tutorial | 0 Comments
Repair Text Files with mixed Line Breaks
Tutorial | 0 Comments
Rewrite Text Files with a fixed Line Length
Tutorial | 0 Comments
HTML5: Upload Images with Client Side Resize
Tutorial | 9 Comments
Windows Batch Script: Computer Shutdown
Tutorial | 0 Comments
Website Performance: Deliver JavaScript and CSS files compressed to reduce loading times
Tutorial | 0 Comments
jQuery: Submit complete form and receive content with Ajax
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
Just insert the command "start" before each command.
This will make your script look like this:
With this, all files should be opened immediately and successively without waiting for the Editor closing.
2017-09-26 at 18:10