I am using the following ShellExecute command to print a PDF document which works a treat but it leaves the Adobe reader program open on the task bar. How can i close this program in script?
My Code
fname = "C:\Temp\fms52703.pdf"
Dim hwnd As Long
Dim ret As Long
Dim lngresult As Long
ret = ShellExecute(hwnd, "Print", fname, "", "", 0)