app receive parameters
hi,
i'm trying to create an app that will be called (activated) by another app, and receive a paremeter from the same app that called it.
i' tried to look around but did not find anything... :(
what should i look for/under?
how do i craete an exe that will be executed and in the same time recive an external parameter by an external app?
thanks.
# 1 Re: app receive parameters
When a Command Line parameter is sent to a VB Exe it will be passed to the Exe in the Command object. You can use this Command$ to get the list of parameters. Search Here, you will get enough samples to understand how to use it.
# 2 Re: app receive parameters
Command Line Arguments, if passed to an executable, are stored in a special System Variable, and can be returned to our program using the Command Function.
The only way to pass a Command Line Argument is when you execute an executable version of your program in the Run Window or using the SHELL function, and that means you must compile your program. However, it is possible to test your program to see how your Command Line Argument logic is working within the Visual Basic IDE. You can simulate the passing of a Command Line Argument within the IDE by bringing up the Properties Window for your project and selecting the 'Make' Tabthere is a Textbox labeled 'Command Line Argument'--any value placed in this Textbox simulates the program running as an executable with a Command Line Argument
jggtz at 2007-11-9 19:36:43 >
