Categories

Limit file download speed

//Author: Jonas John // local file that should be send to the client $local_file = ‘test-file.zip’;    // filename that the user gets as default $download_file = ‘your-download-name.zip’;    // set the download rate limit (=> [...]

Check if network is available

Check if network is available

Check if network is available

Module Module1

Sub Main() ‘check network is available Dim returnValue As Boolean returnValue = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable If returnValue = True Then Console.WriteLine("Network available") Else Console.WriteLine("Network not available") End If System.Console.Read() End Sub

End Module

Bookmark It