How to browse a web page and display it one by one

Tian 40 Reputation points
2024-02-08T07:05:36.8133333+00:00

I'm develop a code able to help me browse a web page, one by one. i hope it can be like, show first webpage delay 30 second than close the webpage and show second web page 30 second than close it and so on Below is my code Dim A As String = "https://visualstudio.microsoft.com/vs/"

Dim B As String = "https://visualstudio.microsoft.com/vs/features/"

Dim C As String = "https://visualstudio.microsoft.com/vs/compare/"

Dim D As String = "https://status.visualstudio.microsoft.com/

Dim TL As String() = {"A", "B", "C", "D"} Dim myProcess As Process = New Process() myProcess.StartInfo.UseShellExecute = True myProcess.StartInfo.FileName = "TL" myProcess.Start()

RunBatchFile("my batch file path") Batch file close window Timeout /t 30 taskkill /IM msedge.exe

Developer technologies VB
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2024-02-08T13:02:00.33+00:00

    Hi @Tian ,

    You can consider using some code like this:

            For Each T As String In TL
                Dim myProcess As Process = New Process()
                myProcess.StartInfo.UseShellExecute = True
                myProcess.StartInfo.FileName = T
    
                myProcess.Start()
                Thread.Sleep(3000)
                myProcess.Kill()
    
            Next
    

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.