Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Sample files

&pagelevel(3)&pagelevel

openFT is supplied with a range of sample files that you can use for various purposes. Once openFT has been installed, you will find these files in the directory

  • /opt/openFT/samples (Unix systems)

  • openFT-installation-directory\samples (Windows systems)

ftadm

The file config.xml contains a simple sample configuration for remote administration. You can use this sample as a template and adapt it according to your needs.

ftscript

This directory contains examples for the openFT-Script interface. You will find a description of the interface in the manual "openFT (Unix and Windows systems) - openFT-Script Interface".

filedist.ftsc

Distribute files to several different partner systems.

transsuc.ftsc

Transfer a file to a partner system with follow-up processing.

treecopy.ftsc

Transfer a complete directory tree to a partner system.

ftaccnt.xlt (Unix systems)

The Excel template demonstrates how to evaluate the CSV output format of the logging commands and how to use them in Excel for accounting purposes.

ftapi

Comprises the files sample1.c, sample2.c, sample3.c, sample4.c, sample5.c, sample6.c and sample7.c.

These examples illustrate various options for using the C programming interface of openFT. You will find a description of the examples in the manual "openFT (Unix and Windows systems) - Program Interface".

sample1.c

Transfer a file asynchronously

sample2.c

Transfer several files with follow-up processing.

sample3.c

Show the contents of a remote directory.

sample4.c

Execute a command on the partner system.

sample5.c

Run a loop that reads in, in quantities equivalent to the size of the buffer, the file attributes of all the files in a remote directory.

sample6.c

Create a directory on partner system.

sample7.c

Delete an empty directory on partner system.

java

Comprises the files Sample1.java, Sample2.java, Sample3.java, Sample4.java, Sample5.java, Sample6.java and Sample7.java.

These examples illustrate the Java programming interface of openFT. How to compile and run the examples is described in the manual "openFT (Unix and Windows systems) - Program Interface".

Sample1.java

Transfer a file asynchronously

Sample2.java

Transfer several files with follow-up processing.

Sample3.java

Show the contents of a remote directory.

Sample4.java

Execute a command on the partner system.

Sample5.java

Run a loop that reads in, in quantities equivalent to the size of the buffer, the file attributes of all the files in a remote directory.

Sample6.java

Create a new directory on partner system.

Sample7.java

Delete an empty directory on partner system.

treecopy-get, treecopy-send, treecopy-send-unique (Unix systems)

These shell scripts illustrate various ways of transferring a complete directory to Unix or Windows partner systems.

treecopy-get

Fetch all files of a directory from a partner system using preprocessing. In this example, preprocessing is used in the remote system without an intermediate file being specified.

treecopy-send

Pack all files of a directory in a tar archive using preprocessing, transfer them to a partner system and unpack them there using postprocessing.

treecopy-send-unique

Pack all files of a directory in a tar archive using preprocessing, transfer them to a partner system and unpack them there using follow-up processing.

The use of %UNIQUE in the receive file name allows several scripts to be executed concurrently.

msexcel (Windows systems)

This directory contains the Microsoft Excel file ftaccnt.xlt and openft32.xls.

ftaccnt.xlt

Microsoft Excel template (Microsoft Excel 2003 and 2007). The template demonstrates how to evaluate the CSV output format of the logging commands and how to use them in Microsoft Excel for accounting purposes.

openft32.xls

Adds the menu openFT containing the commands Transfer this File and Cancel Transmission to the menu bar of Microsoft Excel. The file contains the associated Microsoft Visual Basic macros. The description of the macros is displayed when you open the file.

msword (Windows systems)

The file openFT32.dot is a Microsoft Word template (Microsoft Word 2003 and 2007). Documents created with this template can transfer themselves to a partner system where they can be printed if necessary. To do this, the template must be installed in the folder for Microsoft Word templates locally on your computer and on the partner system.

openFT32.dot adds the menu openFT with the commands Transfer Document, Cancel Transfer and Send Clipboard to the menu bar of Microsoft Word. The file contains the associated Microsoft Visual Basic macros. The description of the macros is displayed when you open the file.

ocxdemo (Windows systems)

This sample illustrates the use of the OCX control fttrans.ocx. The directory contains the relevant Microsoft Visual Basic application and the associated source code. You will find a description of OCX control in openFT fin the Readme file in the ocxdemo directory and in the manual "openFT (Unix and Windows systems) - Program Interface".

The Microsoft Visual Basic application is started and the OCX control for openFT is loaded by calling ocxdemo.exe.

shellext (Windows systems)

This directory contains the program library and the install file and uninstall file for the openFT shell extension. The openFT shell extension allows you to create predefined send patterns on the desktop in order to start a file transfer to a defined partner by dragging and dropping the file onto the send pattern from the Windows Explorer.

After installation, you create a new send pattern as follows:

  • Choose New from the desktop context menu and then choose the entry openFT Send Pattern.

    A new icon whose name you can change is created on the desktop. The file name extension .openFTst must not be deleted from the name. You can then configure the openFT-specific parameters.

  • Right-click the send pattern icon and choose Properties from the menu. The Properties dialog box is displayed.

    This contains the following additional openFT-specific tabs:

    openFT General

    Specifications on the partner system

    openFT Options

    Specifications on the send request options

simple (Windows systems)

The file ncopy.c illustrates how to call the commands from a program using the associated DLLs using the ncopy command as an example.

www (Windows systems)

The sample programs in this directory show how you can use openFT for downloading in the Internet or in an intranet. The example uses a Windows system as a client and a Unix system as the server platform. You will find a detailed description of the concept and the way in which it is implemented in the Readme file in the www directory.