Open and close websites in batch
09:16 26 Dec 2016

I'm trying to make an batch file that opens a website for 5 seconds, then closes it an then loop the batch, I got not much Succes, does anyone now how to do this, without letting all te cmd pages on screen(so the batch also closes the cmd after running) I hope someone can help me.

this is the code i got so far, it works but it doesnt close the cmd.exe (Web is the name of the .bat file)

@echo off 
start "chrome.exe" "http://www.websitehere. co" 
timeout /t 3
taskkill /IM chrome.exe /F
:loop
start /wait Web
goto loop

Greetz Bas

batch-file