Results 1 to 3 of 3

Thread: Passing a parameter to an exe prior to exectuing it.

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Baulkham Hills, NSW Australia
    Posts
    14

    Question

    I have an app with which I want to be able to pass a parameter to and when it executes use that parameter to determine what it does next.

    Any help would be much appreciated, thanks in advance.
    kiss

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Hello Andrew,

    Try using the Command function. It returns anything entered after the exe file.

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Code:
    Sub Main()
    
        Msgbox Command$
    
    End Sub
    You just have to use InStr (or any other string manipulation function) to parse the command line to look for your parameters

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