PDA

Click to See Complete Forum and Search --> : Two questions, One about Shell Execute 2)passing arguments to your app


Dec 14th, 1999, 05:47 AM
what is the code for the shell execute, my api viewer thing isnt working?
and
how do you obtain the arguments that are passed to your program right at the start of execution?

Serge
Dec 14th, 1999, 08:14 AM
If you're talking about the declaration of this API, then here it is:

Public 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


------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)

Clunietp
Dec 14th, 1999, 01:28 PM
Obtain arguments that are passed to your app:

via Command$


Sub Main()
msgbox Command$
end sub