Hi There,
For my company I am trying to write a simple script, and with all the resources on the internet it goes quit well. The only thing I can't find is how to close a window. For example I open notepad with the following code:
Now I want to close notepad in the same script. I don't think this is really difficult for experienced programmers, so can you help me out?
Thanks in advance,
Neovecchi
For my company I am trying to write a simple script, and with all the resources on the internet it goes quit well. The only thing I can't find is how to close a window. For example I open notepad with the following code:
Code:
function fnShellExecuteVB()
dim objShell
set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "Notepad.exe", "", "", "open", 1
set objShell = nothing
end functon
Now I want to close notepad in the same script. I don't think this is really difficult for experienced programmers, so can you help me out?
Thanks in advance,
Neovecchi