thumb_up
thumb_down
link
Copy link
Copied
insert_emoticon
lmatfy
Copied

Command Line Utility

You use the default command line to perform tasks on a system on which Profit is also installed.

Description

You can use the Profit Command Line Utility to have the system perform certain tasks automatically, for example every night. You can use this facility for creating or restoring backups, refreshing current data, creating reports, etc.

A command line consists of three parts:

Commandline Utility

  • AFASCMD

    This software file is used to run the Command Line Utility. You must indicate the location of AFASCMD in the command line. This file is located in the following folder for standard Profit installations:

    C:\program files (x86)\Profit\Afas Windows\Kernel\Bin

    The path reference must be entered in quotes.

  • [General options]

    Environment and user data to which the command applies. For example O/"ERPDEMO" refers to the ERPDEMO environment.

  • [Action with options]

    The command that you want to execute, for example BACKUP for creating a backup.

    Example: 

    "C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"DEMO" /G"martin" /W"password"

    Note:

    Make sure that you use straight quotes (")in the syntax of the command line. Take note of this if you copy the command line directly to the .BAT file. The curved quotes (”) often cause errors when the command line is executed.  

Essential processes

The following actions are essential to the reliable functioning of Profit:

  • BACKUP (create a backup copy)
  • ACTUAL (daily updating of HR and CRM data)

To start the Command Line Utility:

In a client/server configuration you start the Command Line Utility from the application server. In a standalone solution you start the Command Line Utility from the PC on which Profit is installed.

Procedure

Also see

Process

Command Line Utility

Work area

app