Skip to main content

AccessTr.neT


shell ile ilgili bir komut

shell ile ilgili bir komut

Çözüldü #1
bu ne işe yarıyor
Kod:
Option Explicit

'========================================================
'   API declaration
'========================================================
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 sFile As String
    Dim sCommand As String
    Dim sWorkDir As String
    
    sFile = "C:\albums\index.html"  'The file to execute
    sCommand = vbNullString         'Command line parameters
    sWorkDir = "C:\albums"          'The working directory

    ShellExecute hwnd, "open", sFile, sCommand, sWorkDir, 1
End Sub

@benbendedeilem
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
shell ile ilgili bir komut - Yazar: accessman - 20/04/2012, 00:19
Cvp: shell ile ilgili bir komut - Yazar: alpeki99 - 20/04/2012, 00:42
Cvp: shell ile ilgili bir komut - Yazar: accessman - 20/04/2012, 00:46