A little VB script help?

Associate
Joined
29 Aug 2006
Posts
867
Location
South London
Hi, I’m trying to write a script in visual basic (2005 express) to close an external application. The script I’ve already done to open the aforementioned application uses the lines of code:

Shell("C:\mplayerc.exe C:\Media\Spacetheme.AVI", vbNormalFocus)
Me.Close()

Does anyone know what I should write for a separate script that when run, would close the above application at any given moment?

Thanks very much :)
 
Sorry I’m not sure I follow what you're saying :confused: Do you mean there's a way to close the application using the same kind of method I used to open it? Is there some command like 'Close.Shell' that I’m missing? I'm pretty new to VB, apologies for being a bit slow.
 
Back
Top Bottom