How to close a program previously opened with the comand "shell"

S

sbtk

Hello to all.

Is possible to close a program previously opened with the comand "shell" ?

Example of my code (access 2003):


Private Sub Prog_Click()
Shell ("C:\WINDOWS\system32\calc.exe")
...
...
_ _ _ _ _ _ 'command or routine to close calc.exe
End Sub



Thanks for your help !
 
D

dsferr

Thanks a lot.



I tought to find something a little bit simple. I say that because my
knowledge about "access" and "code" is elementary.



Anyway I will try to apply yours suggestion, but for me is very difficult.

I will inform later ...



Bye!
 
S

sbtk

Thanks a lot.

I tought to find something a little bit simple. I say that because my
knowledge about "access" and "code" is elementary.

Anyway I will try to apply yours suggestion, but for me is very difficult.

I will inform later ...

Bye!
 
S

sbtk

Thanks a lot.

I tought to find something a little bit simple. I say that because my
knowledge about "access" and "code" is elementary.

Anyway I will try to apply yours suggestion, but for me is very difficult.

I will inform later ...

Bye!
 

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