Perform a function at a specific time in VB.NET

Posted by Shardul on Stack Overflow See other posts from Stack Overflow or by Shardul
Published on 2010-03-25T06:24:38Z Indexed on 2010/03/25 6:33 UTC
Read the original article Hit count: 317

Filed under:

Hi, I am writing a small app to automatically connect my PC to the internet at a certain time.. I am using rasdial.exe for it...

Private Sub SetIt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim windir As String = Environment.GetEnvironmentVariable("WINDIR")
    Shell(windir & "\system32\rasdial.exe", AppWinStyle.NormalNoFocus)
End Sub

My question is how to make the shell function run at a specified time or after a certain interval??

Regards, Shardul

© Stack Overflow or respective owner

Related posts about vb.net