I dont need Shell command.. Coz i m tryin to run a vbs file !!!
HELPPP FAST!
2006-09-21
14:34:20
·
4 answers
·
asked by
top2000no
1
in
Computers & Internet
➔ Programming & Design
The Answer was
------------------------------------------------------
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 Command1_Click()
Dim strVBSPath As String
strVBSPath = "C:\MyVBSscript.vbs"
ShellExecute Me.hwnd, vbNullString, strVBSPath, vbNullString, "C:\", 0
End Sub
2006-09-21
14:49:06 ·
update #1