ejecutable con parametros

CArlos
23 de Marzo del 2005
necesito saber como se puede llamar a un ejecutable a la vez que se le pasan algunos parametros como direcciones de ficheros que va a necesitar, etc

ejecutable.exe "c:/hgh" etc

gracias

MAXI
23 de Marzo del 2005
hola usa la api shellexecute

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 Ejecutar()
call shellexecute(byval 0&,"open","C:windowsnotepad.exe","c:windowswin.ini",vbnullstring,vbnormalfocus)

end sub