Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SCHEDULE TASK

Posted on 1998-10-09
1
Medium Priority
?
276 Views
Last Modified: 2010-08-05
The name of my executable file is "Auto PrintQueue.EXE"
(This program opens  MS Word Application and does Mailmerge for different documents & prints it to the printer and closes all the documents and ultimately closes Word application)
This program runs great if run it manually.
If I schedule the task to run in SQL server, the program execution starts but never closes MS word application and prints the results.
Any help is appreciated

Thanks
0
Comment
Question by:Sumana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
bamartino earned 100 total points
ID: 1090480
Open application with autoprintqueue.exe but inside Word create an autoexec macro to do the rest including closing Word.
You can run any application that supports autoexec macros/batches just using xp_cmdshell extended stored procedure.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question