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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing parameters to an executable

Status
Not open for further replies.

Earth

Technical User
May 8, 2000
59
AU
Is it possible to pass any parameters to an executable?

Thanks in advance.
 
In your form load event you can do something like this:
Private Sub Form_Load()
If Command = "Test" Then
MsgBox "OK"
End If
End Sub

Then compile the application and call it WhatEver. Then go to run type c:\Folder\Whatever.exe Test
 
Thanks DrJavaJoe.

In the end, I did use Command(), and wrote my own procedure to process the results of this into the variables I wanted various parts of it to sit in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top