I would like to create a SQL job that will close any excel processes opened. I've created a VB Script that works on double-click. I've tried
wscript C:\Apps\DestroyExcel.vbs
using type CmdExec. How can I execute it form SQL to schedule the job to run?
Dim objXL On Error Resume Next Set objXL = GetObject(, "Excel.Application") If Not TypeName(objXL) = "Empty" Then objXL.quit Else msgbox "Excel Not Running." End If