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

I need help regarding the SHELL command. 1

Status
Not open for further replies.

rarubio1

Programmer
Jan 25, 2002
64
US
I have written a VB application that is opened by two different VB apps via the SHELL command. The data that my application displays changes depending on the application that opens it.
What I need to know is if there is a function that whill let me know which application is the one that opened it.

Thanks,
RR :)
 
raru,

Run the app to be run from the others with command line parameters.

So App A would run it using Shell "App2bRun HelloFromA"
App B would run it using Shell "App2bRun HelloFromB"

Then When the App is running you can return the result from its Command$ function like;

TextBox1=Command$

Checkout Command$ in VB help.

regards Hugh

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top