Automation

The application can be run automatically e.g. by using a batch file. You do not need to specify the credentials separately for the automatic task since the credentials are saved in the settings file, FileTransfer.Config (see Log in section). It is also possible to enter credentials in plain text in batch files or as flags when running in the terminal, but not recommended. Our recommendation is to first login in manual mode to create the settingfile for login containing the encrypted credentials. Then set up the automated operations leaving out the login details.

Here we have made an example where we create a batch file in the same catalogue where we have the Secure FileTransfer client. Any operation you can do manually can also be set up in a batch file. The batch file can then be run as a schedule task on your computer or server feeding uploads and downloads from your hosted Vitec server and keeping Aiolos Forecast Studio up to date.

A picture containing text

Description automatically generated 

Below follows an example of a typical upload of data to the hosted Vitec server. Files are uploaded and put in a subdirectory on the Vitec server.

Available parameters for download

-u = Domain and user name like: "MyDomain\MyUser"

-p = Password

-h = Host name (URL), like: "https://MyHost.vitec.net/FileTransfer/"

 

-f = Path where downloaded files will be downloaded to on your computer (fetch file from Vitec server), should only contain path followed by "\", like: "C:\temp\")

 

-m = download (fetch one file at the time from specified folder on Vitec server until folder is empty)

-m = downloadall (fetch a zip file included all files in specified folder on Vitec server)

-z = unzip

 

Available parameters for upload

-u = Domain and user name like: "MyDomain\MyUser"

-p = Password

-h = Host name (URL), like: "https://MyHost.vitec.net/FileTransfer/"

 

-f = Path and file name to describe files to upload (do not handle å,ä,ö ) (send to Vitec server), like: "C:\temp\test.txt"

 

-m = upload (send specified file or files to Vitec server)

-d = Sub folder name to upload file to (only one sub folder)

 

Example of command rows

"C:\Program Files\Aiolos\FileTransfer\FileTransferApp.exe" -f C:\WIND\*.csv -m Upload -d WIND

 

"C:\Program Files\Aiolos\FileTransfer\FileTransferApp.exe" -f C:\LOAD\Prod*.txt -m Upload -d PROD

 

"C:\Program Files\Aiolos\FileTransfer\FileTransferApp.exe" -f C:\LOAD\Cons*.txt -m Upload -d CONS

 

"C:\Program Files\Aiolos\FileTransfer\FileTransferApp.exe" -f C:\Temp\ -m Downloadall -z

 

"C:\Program Files\Aiolos\FileTransfer\FileTransferApp.exe" -u vitecnet\MyUserName -p MyPassword –h https://MyHost.vitec.net/FileTransfer/ -f C:\temp\ -m Download

For the client to run you need to have the following ports open on your network:

Port:                       80 (443)

Protocol:                Http (Https)

URL:                      https://MyHost.vitec.net/FileTransfer/