Results 1 to 3 of 3

Thread: Two questions, One about Shell Execute 2)passing arguments to your app

  1. #1
    Guest

    Post

    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?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    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
    [email protected]
    [email protected]
    ICQ#: 51055819


  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Obtain arguments that are passed to your app:

    via Command$


    Sub Main()
    msgbox Command$
    end sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width