Does somebody know how I can end a progress when I click on a command button with a VisualBasic program?
Ex.: When I click on the command button, the process msnmsgr.exe must stop (MSN Messenger must end)
Dim Process As Variant
strProcess = "Program to end"
For Each Process In GetObject("winmgmts:").ExecQuery("Select * from Win32_Process Where Name = '" & strProcess & "'")
Process.Terminate
Next
But I have one question more: how can I get the filesize of a file?
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.