'Il seguente codice crea un collegamento sul desktop.
'dichiarazione variabili Dim StrURLFile As String Dim StrURLTarget As String Dim FileNum As Integer 'Inizializzazione variabili StrURLFile = "C:\Windows\Desktop\VB-World.url" StrURLTarget = "http://www.jelsoft.com/vbw/" FileNum = FreeFile 'Scrive il file Open StrURLFile For Output As FileNum Print #FileNum, "[InternetShortcut]" Print #FileNum, "URL=" & StrURLTarget Close FileNum Un buon modo per pubblicizzare il vostro sito e' creare un link sul desktop o nel menu' Start ad esso. Per fare questo bisogna creare un file URL. Quando si clicca sul collegamento, si apre il browser di default con il vostro sito web immagazzinato nel file. La struttura del file e' la seguente: Un file URL ha l'estensione .URL, e contiene il seguente testo: [InternetShortcut] URL=http://www.websiteaddress.com Un file che crea un collegamento ad internet che punta attraverso il Vb-World avrebbe il formato: [InternetShortcut] URL=http://www.jelsoft.com/vbw/ |