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.
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
Cathy
Jan 2004 - NEWBIE to VB6
Any and all help appreciated
Cathy,
Take a look at this sample, it uses GetExitCodeprocess API to check the return value.
Use [code]your code here[/code] tags when you post source code
Search here before you post your question, someone might have already asked it before. My Articles
Bookmarks