Hvis du skal udfør en commando til irc så er den noget i den stil:
Option Explicit
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 Form_Load() Dim strProgram As String Dim strParameters As String
Du kan mugligvis gøre sådan hvis filtypen "*.mrc" er registret til irc/mirc..
Option Explicit
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 Form_Load() Dim strProgram As String
strProgram = "C:\stig\til\script\Fil.mrc" ShellExecute Me.hwnd, vbNullString, strProgram, vbNullString, vbNullString, vbNormalFocus End Sub
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.