Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass Argument on Startup???

Status
Not open for further replies.

jasonp45

Programmer
Aug 23, 2001
212
US
Let's say I have a program called "Test.exe", something like the following:

Sub StartupTest(sSomeString)
MsgBox sSomeString
End Sub

From another program (or command line, or wherever), how do I call Test.exe, pass it a parameter, and have it automatically accept the parameter and put it into sSomeString?
 

In form load event or Sub Main....


Dim sCmdLine as string

sCmdLine = Command()


YourApp.exe any argument(s)

sCmdLine will = "any argument(s)"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top