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!

Program Startup Parameter 1

Status
Not open for further replies.

DaveJohnson

Technical User
Feb 13, 2005
13
GB
Is to possible to pass a variable to the EXE on load.

I have an EXE which is called from another EXE and I want to pass a String between them.

Thanks.
 
read up on Command$

Code:
Sub main()
'command line arguments are held in command$
MsgBox "My command line is " & Command$
End Sub

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top