• Die Aktionen aus der Kategorie "FTP & SFTP"

    1 Allgemeine Attribute


    Die allgemeinen Attribute IgnoreError, Variable und Condition können bei allen Aktionen angegeben werden. Die Attribute sind optional und brauchen nur bei Bedarf hinterlegt werden. Wenn diese für eine Aktion nicht benötigt werden, können diese aber auch zur besseren Lesbarkeit des Skriptes entfernt werden.

    IgnoreError
    Das optionale Attribut IgnoreError gibt an, ob bei einem Fehler die Ausführung des Batchpad Skriptes abbricht oder das Skript weiter ausgeführt werden soll. Der Wert muss dem Typ Boolean (true oder false) entsprechen.

    Variable
    Das optionale Attribut Variable kann immer dann verwendet werden, wenn man das Ergebnis einer auszuführenden Aktion ermitteln möchte. Variable="{@ResultFileExists}".
    Die Ergebnisse sind je nach ausgeführter Aktion vom Typ her unterschiedlich, oft ist es ein Boolean (true oder false) der angibt ob die Aktion erfolgreich war. Bei Aktionen für Zeichenketten sind die Ergebnisse dann eher vom Typ String usw.

    Condition
    Das optionale Attribut Condition gibt an, ob die Aktion ausgeführt werden soll. Hierzu wird der Inhalt des Attributes als logischer Ausdruck auf Wahr oder Falsch geprüft. Der Ausdruck sollte dem Typ Boolean (true oder false) entsprechen.
    Der Ausdruck kann Funktionen aus VBScript enthalten, genauso wie Operatoren NOT, OR, AND...
    Mit dem Condition Attribut wertet man in der Regel Variablen aus, die Ergebnisse aus zuvor durchgeführten Aktionen enthalten. Beispiel: Condition="NOT {@ResultFileExists}"



    2 FTPFileUpload

    Die Aktion FTPFileUpload lädt die angegebene Datei (Attribut: Source) auf einen angegebenen Pfad (Attribut: Destination) des FTP-Servers.

    <FTPFileUpload Source="" Destination="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    3 FTPFileDownload

    Die Aktion FTPFileDownload lädt die angegebene Datei (Attribut: Source) von einem FTP-Server auf ein lokales Zielverzeichnis (Attribut: Destination).
    <FTPFileDownload Source="" Destination="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    4 FTPDirectoryUpload

    <FTPDirectoryUpload Source="" Destination="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Overwrite="false" Mirror="false" Variable="{@Result}" />

    5 FTPDirectoryDownload

    <FTPDirectoryDownload Source="" Destination="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Overwrite="false" Mirror="false" Variable="{@Result}" />

    6 FTPFileRename

    Die Aktion FTPFileRename ändert den Namen einer Datei auf einem FTP-Server. Über das Attribut Source wird der Pfad inkl. dem alten Dateinamen und Dateiendung angegeben. Über das Attribut Destination wird der Pfad und der neue Dateiname inkl. Dateiendung angegeben.

    <FTPFileRename Source="" Destination="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    7 FTPFileDelete

    Die Aktion FTPFileDelete löscht die angegebene Datei (Attribut: Source).
    <FTPFileDelete Source="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    8 FTPFileExists

    Die Aktion FTPFileExists prüft, ob die angegebene Datei (Attribut: Source) existiert.
    <FTPFileExists Source="" File="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    9 FTPPathCreate

    Die Aktion FTPPathCreate erstellt einen Ordner für den in dem Attribut Destination angegebenen Pfad.
    <FTPPathCreate Destination="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    10 FTPPathRename

    Die Aktion FTPPathRename ändert den angegebenen Pfad (Attribut: Source) in den angegebenen Zielpfad (Attribut: Destination)
    <FTPPathRename Source="" Destination="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    11 FTPPathDelete

    Die Aktion FTPPathDelete löscht den angegebenen Pfad (Attribut: Source).
    <FTPPathDelete Source="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    12 FTPPathExists

    Die Aktion FTPPathExists prüft, ob das angegebene Verzeichnis (Attribut: Source) existiert.

    <FTPPathExists Source="" Host="" User="" Password="" SSL="Tls12" Passiv="true" Condition="" Variable="{@Result}" IgnoreError="false" />

    13 FTPListDirectory

    Die Aktion FTPListDirectory listet alle Verzeichnisse aus dem angegebenen Pfad auf (Attribut: Source) und gibt das DataTable Objekt über das Attribut Data zurück. Über das DataTable Objekt kann anschließend mit einer ForEach Schleife iteriert werden (Siehe Dokumentation Allgemein/ForEach). Zusätzlich wird über das Attribut DataCount die Anzahl der gefundenen Verzeichnisse zurückgegeben.
    <FTPListDirectory Data="{@myData}" Source="" Host="" User="" Password="" SSL="Tls12" Passiv="true" DataCount="{@ResultCount}" Condition="" Variable="{@Result}" IgnoreError="false" />

    14 SFTPFileUpload

    Die Aktion SFTPFileUpload TODO

    <SFTPFileUpload Source="" Destination="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    15 SFTPFileDownload

    Die Aktion SFTPFileDownload TODO
    <SFTPFileDownload Source="" Destination="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    16 SFTPFileRename

    Die Aktion SFTPFileRename TODO
    <SFTPFileRename Source="" Destination="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    17 SFTPFileDelete

    Die Aktion SFTPFileDelete TODO
    <SFTPFileDelete Source="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    18 SFTPFileExists

    Die Aktion SFTPFileExists TODO
    <SFTPFileExists Source="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    19 SFTPPathCreate

    Die Aktion SFTPPathCreate TODO
    <SFTPPathCreate Destination="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    20 SFTPPathRename

    Die Aktion SFTPPathRename TODO
    <SFTPPathRename Source="" Destination="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    21 SFTPPathDelete

    Die Aktion SFTPPathDelete TODO
    <SFTPPathDelete Source="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    22 SFTPPathExists

    Die Aktion SFTPPathExists TODO

    <SFTPPathExists Source="" Servername="" User="" Password="" Condition="" Variable="{@Result}" IgnoreError="false" />

    23 SFTPListDirectory

    Die Aktion SFTPListDirectory TODO
    <SFTPListDirectory Data="{@myData}" Source="" Servername="" User="" Password="" DataCount="{@ResultCount}" Condition="" Variable="{@Result}" IgnoreError="false" />



Teilen