Zur Navigation | Zum Inhalt
Version 6.4 Released
See the changelog for details of this new release.
FVCML0208 10
Command Line - Add Document PDF Print E-mail

Add Documents

Documents can be added from the command line allowing bulk document submission to be scripted.

Syntax:

{program files}\Pikaia\rocketDMS\rocket2.exe --add-document --username={username} --password={password} -result="{result file}" --path="{docstore path}" --document="{document/file to add}" --tag-{tag}="{value}"

{program files}
Program installation path.
{username}A licensed RocketDMS username. (required)
{password}
 
{result file}Path to result output. (optional)
{docstore path}Path in the documents store. eg. /Pikaia/Customers. (required)
{document/file to add} Full path to the document or file being added. (required)
{tag}*Any of the meta-data tags as displayed in the Document Tags pane of the RocketDMS application.
{value}Value to be recorded against the tag.

 *Multiple --tag-{tag} parameters can be used. Some of these may be required if your system is configured with mandatory tags. 

 Example:

"C:\Program Files\Pikaia\rocketDMS\rocket2.exe" --add-document --username=mike --password=?????? --result="C:\add_doc.out" --path="/Kereru/Flying" --document="L:\mike\maps\flight\MK-MS.pdf" --tag-date="2009-06-21" --tag-description="Motueka to Masterton Flight Plan" --tag-pass_to=mike --tag-status=review

The document  L:\mike\maps\flight\MK-MS.pdf will be added to the document store in the /Kereru/Flying folder path with these tags set:

date : 2009-06-21
description : "Motueka to Masterton Flight Plan"
pass_to : mike
status : review

The result of the request will be placed into the file C:\add_doc.out . The contents of this output file can be read and tested.

Output:

On success the output file will contain the text string OK

On failure the output file will contain the text string ERROR:{error message} 

 

 

Last Updated on Thursday, 20 May 2010 11:06