Imports worker Imports worker.functions
Module main
Sub Main(ByVal args() As String)
End Sub
End Module
Imports worker Imports worker.functions
Module main
Sub Main(ByVal args() As String)
End Sub
End Module
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Net; using System.Text.RegularExpressions; namespace openurl { class Program { static void Main(string[] args) { foreach (string s in args) { Match m = Regex.Match(s, @"^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$"); if (m.Success) { try { Console.WriteLine("Opening " + s); WebRequest rq = WebRequest.Create(s); WebResponse rs = rq.GetResponse(); rq = null; rs = null; } catch (Exception ex) { Console.WriteLine(ex.Message); Console.ReadLine(); } } else { Console.WriteLine(s + "is not a valid URL"); Console.ReadLine(); } } } } }+++ download project +++