Tech Tip: Publishing from the Command Line with Plus 8.1

November 23rd, 2009 Comment on this article

With Laserfiche Plus 8.1, you can use the Windows command line to publish documents into a portable repository. This feature allows you to incorporate Plus publishing into other processes. For instance, you could create an automated system for making backups, or integrate Plus with another software program. From the command line, you can also use options not available from the Plus interface, including publishing briefcases and encrypting a published repository with multiple passwords.

To publish from the command line, navigate to the directory where the Plus program is installed. By default, this is c:\Program Files\Laserfiche\Plus 8.1. Then specify the following types of parameters:

  1. The source of the documents to publish.
  2. Which documents to publish—specify a folder, volume, list of entry I.D.s, or search query.
  3. The destination for the published repository.
  4. Optional: Any additional settings.

Example:

The following command line will log into the repository CoolRepository on the server localhost as the user bfranklin with the password $3kr3t. It will publish everything in the Laserfiche file under the path \Loan Applicants\Business Plans. The published repository will be stored on the C: drive in the folder path \Published\Business Plans and will be named Applicant Plans. The user settings such as document layout and Folder Browser columns will not be included in the published repository. Either of the passwords—Passw)rd1 or Passw)rd2—will open the published repository.

Plus.exe –server localhost –repository CoolRepository –user “bfranklin” –password “$3kr3t” –path “\Loan Applicants\Business Plans” –dest_path “C:\Published\Business Plans” –dest_name “Applicant Plans” -no_settings –encrypt “Passw)rd1″ –encrypt “Passw)rd2″

11-23-2009command publishing

For information on the available parameters and further examples, see the Laserfiche Plus 8.1 help files or the Publishing from the Command Line with Laserfiche Plus 8.1 white paper.

For an example script that works with the command line publishing feature in Plus, see the Automatically publish all documents modified in the last N days Laserfiche Code Library sample.

Tags: ,

Comment on this article