close the first program after the command shell?  
Author Message
yanivpinhas





PostPosted: Visual Basic Express Edition, close the first program after the command shell? Top

Hi,

I wrote a program that calls to another program with the command "shell".

But I want that the program that run\call another program will close(the first program) automatically after the shell command.

Any ideas

Regards,

Yaniv



Visual Studio Express Editions5  
 
 
Tall Dude





PostPosted: Visual Basic Express Edition, close the first program after the command shell? Top

Just add a

Application.Exit()

after the shell statement to close the original application.



 
 
Moayad Mardini





PostPosted: Visual Basic Express Edition, close the first program after the command shell? Top

And you can use End keyword too.