Show/Hide Toolbars

Navigation: Developer Information > Using the registry

Automatically Executing an Application

Scroll Prev Top Next More

You can automatically execute an application after the document is created by creating a string registry value named "Post Action" in any of the standard registry locations.  The application must be specified using the full path name, and the document can be passed to the application by using a "%s" in the command line.  For example, setting "Post Action" to:

C:\Program Files\Adobe\Reader 8.0\Reader\acrord32.exe "%s"

would launch Acrobat Reader after the document is created.  It is important to enclose the file name with quotation marks since the file may contain spaces.  The registry value is deleted after each document unless the persistent value is set.