FIX FOR WINDOWS BATCH FILE THAT DOES NOT CONTINUE LAUNCHING

September 9, 2016   /   by Marco  / Categories :  Software, Technology, TIP AND TRICKS, Windows
FIX FOR WINDOWS BATCH FILE THAT DOES NOT CONTINUE LAUNCHING

Windows batch files are great for basic automation, especially if you add it to your Windows Startup. However, I just ran into a problem with executing multiple commands in a batch file – they would not continue and just pause until the program is exited.

Here is an example of the original batch file:

The batch file simply waits for 10 seconds before opening up a shortcut link which points to a particular website. Chrome is used to open up the website.

The additional requirements was to wait for 5 minutes and then close the website and open another.

So I thought the commands would be this:

The problem with the above batch file was it would just get stuck when the website opens up. If you closed the browser then it would continue. After searching around for the best possible solution I figured out that all I needed to use was the following command:

start “” “C:\website.lnk”

It is important to make sure you have “” after start because this refers to the TITLE of the window so if you don’t have this, the link won’t open.

Finally, the working solution with all the commands used in the batch file is below:

 

Business Legions Batch File IssueIf you need any help with this leave me a comment and I’ll try my best to help.

 

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


HOW TO CONNECT THE PS3 CONTROLLER TO THE NINTENDO SWITCH

HOW TO CONNECT THE PS3 CONTROLLER TO THE NINTENDO SWITCH

Our family has a Nintendo Switch with only the 2 Joycon controllers that came with the Switch. I decided to look at getting extra controllers but I noticed we had 2 PS3 controllers from the Sony Playstation 3. After some research, I discovered there are Bluetooth dongles that allow the PS3 controllers to connect to […]

read more
OPENING THE JABRA ROX HEADSET – WHERE IS THE BATTERY!

OPENING THE JABRA ROX HEADSET – WHERE IS THE BATTERY!

My Jabra Rox headset wasn’t charging anymore so I decided to find out where the battery was located and to see if it was easy to replace. I was advised by Jabra support the battery cannot be replaced and after opening up the unit I can see why. There were a few steps I used […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

Social Wall Social Wall