...
- On the Adeptia Suite homepage, click the Develop tab.
Go to Services > Extensions and then click Native Call.
The Manage Native Call screen is displayed.
Manage Native Call
- Click the Create New link. The Create Native Call screen is displayed.
- Enter the name and description of the new Native Call activity in the textboxes Name and Description fields respectively.
- Select the extension of the file i.e. .exe, .bat or .sh from the dropdown list Default Extension.
- Enter the filename with full path in the textbox File Name(Absolute Path).
To specify any arguments for selected batch or executable file enter the arguments in the Argument(s) space separated field (see Figure 577).
Create Native Call
Enter the path of directory, where you want the run the specified batch or executable file, in the Working Directory (Absolute Path) field.
Info All files specified into batch or executable file must be placed on the server on which the Adeptia Server is running.
Info If Working Directory is not specified, the home directory of Adeptia Server, (i.e. ../../AdeptiaServer/AdeptiaeServer-6.2) becomes the working directory. All the files specified into batch or executable file will be looked into Adeptia Server home path.
For example, there is batch file Mybatch.bat and it is placed on C drive. The contents of batch file are Copy File1.txt File2.txt. File1.txt is placed in C drive. Since the working directory is not specified the batch file will look for File1.txt into ../../AdeptiaServer/AdeptiaServer-5.1 and it will cause error. So you can either specify the working directory (i.e. C:) or specify the absolute path (e.g. copy C:\File1.txt C:\File2.txt) in the batch file.- Click the Save button.
...