ejecutable con parametros
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
ejecutable.exe "c:/hgh" etc
gracias
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
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