Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/02/2003, 10:42
Avatar de Jorge_Mota
Jorge_Mota
 
Fecha de Ingreso: diciembre-2002
Ubicación: Chapinlandia :-D
Mensajes: 725
Antigüedad: 21 años, 4 meses
Puntos: 11
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
Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
'KPD-Team 1998
'URL: http://www.allapi.net/
'E-Mail: [email protected]
'Send an E-Mail to the KPD-Team
ShellExecute Me.hwnd, vbNullString, "c:\tuCarpeta\archivo.bat", vbNullString, "C:\", SW_SHOWNORMAL
End Sub


si no quieres que se vea la ventana de DOS al ejecutarse el punto bat
en lugar de SW_ShowNormal en le penultima linea, pon Un Cero.