1

I am currently in school and wanted to make a batch file that opens all links as follows:

@echo off
start chrome
start https:URL1
start https:URL2
start https:URL3

Now it opens a new chrome window. The problem is that it also opens an empty first tab. I tried to figure out key inputs like "^{TAB}" and "^w" in VBS but sadly couldn't. Is there a way to close the first tab with VBS or javascript from a batch-file? All help is appreciated!

Stan
  • 11
  • 3

1 Answers1

1

Updated code.

@echo off
start chrome --new-window "www.cnn.com" "www.espn.com" "www.microsoft.com"
Squashman
  • 13,649
  • 5
  • 27
  • 36
  • Thanks but this only works half of the time with lower T-values. Is there a way the next line will run when the previous is finished without pre-set timout? – Stan Sep 10 '17 at 11:05
  • Don't you think I would have provided that answer up front? – Squashman Sep 10 '17 at 18:34