Salve ragazzi!
Ho la necessità di aprire un file di testo (txt) dal mio software. Avevo pensato di usare l'API ShellExecute ma non mi funziona.
Il codice che ho scritto è il seguente:
sapete suggerirmi la soluzione?codice:Private Declare Function ShellExecute Lib "shell32.dll" _ Alias "ShellExecuteA" ( _ ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long Private Sub but_VisualizzaFile_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles but_VisualizzaFile.Click ShellExecute(Me.Handle, "", "log.txt", "", _ sPathLog & "\", 1) End Sub
Grazie a tutti
lady



Rispondi quotando
