Copy link
General options for the Command Line Utility

You can use the general options for every action; usually these options are mandatory. For specific command lines it may be stated that the general options are not mandatory.



Option /O: the name of the environment in Profit for which the command line should perform the action. This option is mandatory for almost every action.


"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"ERPDEMO"


The general option /G is used to indicate the Profit user who will be performing the action.


"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE" /G"Commandline"

The user must be authorised to run command line actions. A special authorisation applies to the BACKUP action.

You cannot enter the COM+ user - specified during the installation of Profit - as the command line user.


Option /W: password of the user executing the command line.


Command line user: commandline

Password: @123WE))

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/G"commandline" /W"@123WE))"

If the password is required to perform the action, the password will be requested if this option has not been set. To enter an empty password, use /W"".

/L<Log file>

Option: /L: The name of the log file.

If you perform functions in Profit, messages may be generated. When using the command line these messages are saved in log files. After executing the command line, you can view the log files and check the messages.

There are two types of log file:

  • general log file
  • specific, result log file.

The general log file is used to log that the performance of the action failed. Errors when logging on, such as a incorrect user or a user without the correct rights in the command line, are also reported in this log file.


"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password"/L"C:\logfile.txt" LOGISTICS /P" GENERATESSCC" /S"0" /E"0"

The start and end times of the action are saved in the specific log file. All the actions can create their own log files (result log file), such as BACKUP, ARBODIG and IMPORT.

When using both log options, you must give the log files clear names. For example:

  • Backup_general.log
  • Log file for the general option in which failure to perform the BACKUP action is logged.
  • BackupResult

    Start and end times of creating the BACKUP.


    "C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password"/L"C:\Backup_general.log" BACKUP /L"C:\BackupResult.log"

/A<Administration number>

Option /A: Number of the administration for which you want to perform the action.

The number of the administration can be found in the first column of the view for selecting an administration. The user with which you perform the command line action must also have rights for this administration.

When using several administrations, we recommend always entering the administration number.


You want to import data into administration 1 of the ERPDEMO environment.

Use the following command line to do this: With the /A"1" option you can specify which administration you want to use.

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password" /O"ERPDEMO" /A"1" IMPORT /N"PROFIT Proef- en saldibalans" /F"C:\IMPORT\BALANS.TXT" /L"C:\TEMP\LOGFILE.LOG"

/?<View Help in the Command Line Utility>

Option /?: View Help for the Command Line Utility.


"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/?


Command Line Utility

Work area