POSTXFER (WS_FTP Professional)

Syntax: POSTXFER

What it does: Starts Post Transfer Mode and runs one or more of the following actions after the file transfer has completed:

  • POSTXFER PXOFF - Clears the post transfer command (turns off Post Transfer Mode).
    Note: The PXOFF command must have POSTXFER preceding it on the same line, as in: POSTXFER PXOFF. The PXDELETE, PXRENAME, and PXMOVE commands must follow the POSTXFER command, but POSTXFER should not be repeated with each of these commands.
  • PXDELETE - After the transfer has completed, deletes the source file(s).
  • PXRENAME <Rename Mask> - After the transfer has completed, renames the source file(s) using the Rename Mask.

    The file name of the original file is compared to the mask, and the new file name is generated. In this mask, you can enter any data you want to include in the file name, such as a store number, or some other identifier, as well as any of the following macros:

    • [OnlyName] - Retain the original file name minus the extension and the period (between name and extension). To retain the original file name, you must use this macro.
    • [OnlyExt] - Retain the original file name extension. To retain the original file name extension, you must use this macro.
      Note: If you want to retain the original file name and extension, you would enter [OnlyName].[OnlyExt]. You need to include the period between the file name and extension.
    • [H] - HOUR; minimal representation, 24-hour clock. Example: "7"
    • [HH] - HOUR; two-digit representation, 24-hour clock. Example: "07"
    • [TT] - MINUTE; two-digit representation. Example: "07"
    • [SS] - SECOND; two-digit representation. Example: "07"
    • [MM] - MONTH; two-digit numeric representation. Example: "07"
    • [DD] - DAY-OF-MONTH; two-digit representation. Example: "07"
    • [YY] - YEAR; two-digit representation. Example: "02"
    • [YYYY] - YEAR; four-digit representation. Example: "2002"
  • PXMOVE <directory> - After the transfer has completed, moves the source file(s) to the specified directory on the source machine.
  • PXRENAME <Rename Mask> PXMOVE <directory> - After the transfer has completed, renames the source file(s) using the Rename Mask (described above), then moves the files to the specified directory on the source machine.