Is it possible to run a Compact Project command on schedule?

Question

Is it possible to automatically run a Compact Project command once per given period of time? 

Answer

It is possible to use the CompactProject command from CLI for project administration called FCAdminTools. Here is the article about this command: CompactProject.

This process can be automatized, so the CompactProject command will be executed once per several days/weeks. To do so, please follow the steps:

  1. Create a new Notepad file that will contain the script code. The code should look like this: 
    cd C:\Program Files\ABBYY FlexiCapture 12 Stations
    FCAdminTools.exe /CompactProject /Project="http://ServerAddress/ProjectName" /U=username /P=password
    If you did not install FlexiCapture to the default folder, you will need to change the first line to:
    cd <path to the 'ABBYY FlexiCapture 12 Stations' folder>
  2. Save this file as a .bat file. The easiest way to do this is to save it as a .txt file and then manually edit the file extension from *.txt to *.bat. 
  3. Go to the Windows Task Scheduler (Start -> Task Scheduler) and create a new basic task:
    blobid0.png
  4. First specify the name and description of the task, then - how often it will be executed:
    blobid1.png
  5. In the Action menu select Start a program:
    blobid2.png
  6. After clicking Next you will be prompted to select the program to run. Select the .bat file from p.2.
  7. Click Next > Finish and make sure that the new task appeared in the list of active tasks:
    blobid3.png

Now the project will be compacted automatically on a schedule. Other FCAdminTools can be run automatically in a similar way too. 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.