Open Program A.
Shell to Program B. Select parameter.
Receive parameter in Program A and close Program B
continue Program A
Thanks
Cathy
Printable View
Open Program A.
Shell to Program B. Select parameter.
Receive parameter in Program A and close Program B
continue Program A
Thanks
Cathy
That doesn't help. Explain what you mean, what you have tried already, and finally, the part that you are stuck with. We don't write apps for people
You can shell to the program using the shell statement. Parameters can be passed as part of the command sent to the shell. The calling program can be terminated afterward just the same as any program.
The program you have shelled to can receive the command line parameters in the Command$ variable. Assuming of course that the program you are calling is one that you are writing in VB as well.
Unless they are both written by him/her. Then you could pass common variables.
Well, it is written by me/her. But you know, I don't want to screw up. I will post my code but for the .... of it, I forgot to make the marks before and after the code.
I.E I thought
[code]
...
[codeend]
But that doesnt' work
So, I'll just wait and have dglienna write it for me.
Thanks
Cathy
whatever tag you start, you end with a slash
]code[Code:' this is your code! enjoy
like this almost
]/code[
Cathy,
Take a look at this sample, it uses GetExitCodeprocess API to check the return value.