How to automate process of sending files with XCOM
search cancel

How to automate process of sending files with XCOM

book

Article ID: 125298

calendar_today

Updated On: 07-18-2024

Products

XCOM Data Transport XCOM Data Transport - Windows

Issue/Introduction

At the moment we are transferring files with XCOM for Windows Server, but we are doing that manually and we are trying to move to an automated process.

  • Is there any feature of XCOM that can be used to automate the process?
  • If not is there any plan to include that functionality in XCOM? When?
  • If not, not, Is there documentation available to do the automation?

Environment

XCOM™ Data Transport® for Windows

Resolution

You can create a script consisting of xcomtcp or xcom62 commands, just as you would write them on the command line and save them as a .bat file.  For example:

xcomtcp  -c1 –f /temp/loop.cnf   REMOTE_SYSTEM=127.0.0.1 REMOTE_FILE=/temp/test.txt  LOCAL_FILE=/temp/del.me USERID=XCOMABC PASSWORD=XXXXXXX QUEUE=YES

Just as you can initiate multiple transfers from the command prompt by using the NEWXFER command, you can also use this parameter in configuration files and in scripts. 

See Code Interdependent Transfers in a Configuration File in our online documentation.  This allows you to code transfers that depend on whether a previous transfer was successful or failed.

You can run the script using the Windows Server Task Scheduler. There is also a Task Scheduler for Windows 7, 10 and 11 and Windows Server. It will start scripts at the dates and times that you choose. 

Additional Information

Microsoft Documentation for Windows Task Scheduler
Although this documentation refers to earlier version of Windows, it exists in later versions also.