Bat file SET_235_Upload.bat

LANSA

Bat file SET_235_Upload.bat

The file name should be SET_235_Upload.bat

Note 1: This example is running from a LANSA User agent directory of C:\LANSA\Integrator\useragent. If you have installed the LANSA User agent to a different directory, you will need to edit this.

Note 2: This bat file requests that the response be returned as file SET_235_Response.csv

The data in the file should be(edit with notepad):

@echo off
cls

rem --- Delete previous error log file
if exist useragent.err del useragent.err

rem --- Send
java -Djsf.log=\LANSA\Integrator\useragent\useragent.log com.lansa.jsf.useragent.JSFUserAgent SET_235_CSV.lih SET_235_Employees_to_report_on.csv SET_235_Response.csv
if exist useragent.err goto error

goto end

rem -- An error has occured
:error
cls
echo Check useragent.err for possible messages
echo Check useragent.log for possible messages

goto end

:end