Command Line Utility
You use the default command line to perform tasks on a system on which Profit is also installed.
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:
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.
"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"DEMO" /G"martin" /W"password"
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.
The following actions are essential to the reliable functioning of Profit:
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.
- Configuration of command line actions
You create a batch file (,bat file) for performing an action from the command line.
- General command line actions
- Command line actions for Fiscal
- Command line actions for HR
- Command line actions for Logistics
- Command line actions for Projects