The following is a sample batch file to launch MTYP client. Copy paste the below code into a batch file. The changes you need to make are:
@echo off
REM Set this to match installation directory
set ADAPLINK_INSTALL_PATH=C:\AdapChain\AdapLink 4.3.0 Client
REM The argument to pass to the program listed below. Here we are passing the fully qualified property file.
SET CLASS_ARG=--PROP_FILE=C:\AdapChain\cmd.mat_loc_co.delete_all.txt
REM This is the command line program to execute. In this case we are executing MTYP Client
set CLASS_NAME=com.adaplink.service.sim.mtyp.cmd.CmdMTYPClient
REM DON'T mess with these lines, unless you know what you are doing :)
set ADAPLINK_BASE=%ADAPLINK_INSTALL_PATH%\.AdapChainBase_cl
set LAUNCHER_CP=%ADAPLINK_BASE%\cmd\com.adaplink.cmd.jar
set LAUNCHER_PRG=com.adaplink.cmd.runner.ProxyRunner
"%ADAPLINK_INSTALL_PATH%\jre\bin\java.exe" -D--AdapChain.Base="%ADAPLINK_BASE%" -cp "%LAUNCHER_CP%" %LAUNCHER_PRG% --CLASS_NAME=%CLASS_NAME% %CLASS_ARG%
The following is a sample property file.
uri=http://127.0.0.1:8085/alsc_service/xmlrpc
login=user1
password=demo
model_type=DEMO_MLC
processing_group=DELETE_ALL
processing_group_description=Delete data from SAP staging and ALDH
The property file is parsed using java.util.Properties. Refer to this link for detailed syntax.
The output can be redirected to a log file to look for any messages/errors.:
C:\AdapChain\run_mtyp_mat_loc_co_delete_all.bat > log.txt