Export data (Command Line Utility)

The EXPDEF action allows you to export data based on an export definition added previously.

Data

 

Action:

EXPDEF

General options:

Default.

Extra options for the action:

/D

The name of the export definition.

Example:

"C:\Program files (x86)\Profit\AFAS Windows\Kernel\Bin\AFASCMD.EXE"/O"Environment name " /G"Username" /W"Password"EXPDEF /D"Naam definitie"  /L"Logfile"

Example: Batch file containing this action

echo check if this is a 64-bit machine

set programfiles(x86)

if "%errorlevel%" == "0" goto 64bit

goto 32bit

:64bit

echo 64bit

"%programfiles(x86)%\Profit\AFAS Windows\Kernel\Bin\AFASCMD.exe" /g"gebruiker" /w"" /o"omgeving" expdef /D"Exportdefinitiecode" /L"C:\Output\log.txt"

goto einde

:32bit

echo 32bit

"%programfiles%\Profit\AFAS Windows\Kernel\Bin\AFASCMD.exe" /g"gebruiker" /w"" /o"omgeving" expdef /D"Exportdefinitiecode " /L"C:\Output\log..txt"

goto einde

:einde

Also see