Perform a function at a specific time in VB.NET
- by Shardul
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