Do you guys know of a good way to close a process, such as an adobe acrobat process that has been started programmatically
Here is some code I've found (for starting and printing a pdf file), and it works fine, but it leaves the acrobat reader running and I want to be able to close it out. I believe getting the process ID and closing it out that way might be the way to go, but not sure. Any help is much appreciated...thanks guys!
Dim filename As String = "C:\Temp\Test.pdf"
Dim proc As New Process
Dim procs As Process()
Dim startInfo As New ProcessStartInfo("C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe")
startInfo.FileName = filename
startInfo.Verb = "print"
Process.Start(startInfo)
procs = proc.GetProcessesByName("AcroRd32.exe")
If procs.Length = 0 Then
'do nothing
Else
Dim i As Integer = 0
For i = 0 To UBound(procs)
procs(i).Close()
procs(i).WaitForExit()
Next
End If

Closing Processes
KhaderM
Curtis111