Start exe in new process and pass a parameter?

D

Dean Slindee

From an executable that I have running, I would like to start a different
executable, and if possible, pass it the key of the row in a table to
display upon launch. Assume that I have written both executables in VB.NET.
What would be required in the way of startup code in the called executable?
Anyone got an example of code for the called executable.

Thanks in advance.
Dean S
 
G

Guest

Dean,

One option among several is to use VB's Command function to retrieve the
command line argument used to start the executable.

Kerry Moorman
 
M

Michel Posseth [MCP]

from the caller you would use process start with command line arguments
in the starting app you can use command to retrieve the values passed in as
arguments

HTH

Michel
 
R

Rad [Visual C# MVP]

From an executable that I have running, I would like to start a different
executable, and if possible, pass it the key of the row in a table to
display upon launch. Assume that I have written both executables in VB.NET.
What would be required in the way of startup code in the called executable?
Anyone got an example of code for the called executable.

Thanks in advance.
Dean S

You can use Process.Start in combination with Assembly.GetExecuting
assembly to relaunch the exe with different parameters
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top