background image

Running i!-FTPSender

5

 i!-FTPSender

  {

    (* Source Server *)

    cSourceIP = '192.168.13.33'       // define source IP 

    cSourceUser = 'NetLinx'           // username for above

    cSourcePass = 'password'          // password for above

    

    (* Destination Server *)

    cDestIP = '192.168.13.151'        // define destination IP 

    cDestUser = 'NetLinx'             // username for above

    cDestPass = 'password'            // password for above

    

    SWITCH (GET_LAST(dcFTPCopy))

    {   

      CASE 1:

      {

        (* File *)

        cSFileName = 'ftptest.txt'        // filename to copy

    

        (* This will cause the file to be copied! *)

        SEND_COMMAND vdvFTPDiag,"'COPY-',cSFileName"

        cButtonPressed = 1

      }

      CASE 2:

      {

        (* File *)

        cSFileName = 'ftptest.txt'        // filename to copy

        cDFileName = 'dir1\ftptest.txt'   // filename to copy

    

        (* This will cause the file to be copied! *)

        SEND_COMMAND vdvFTPDiag,"'COPY-',cSFileName,';',cDFileName"

        cButtonPressed = 2

      }

      CASE 3:

      {

        (* File *)

        cSFileName = 'dir1\ftptest1.txt'   // filename to copy

        cDFileName = 'ftptest1.txt'        // filename to copy

    

        (* This will cause the file to be copied! *)

        SEND_COMMAND vdvFTPDiag,"'COPY-',cSFileName,';',cDFileName"

        cButtonPressed = 3

      }

      CASE 4:

      {

        (* File *)

        cSFileName = 'dir1\ftptest1.txt'   // filename to copy

        cDFileName = 'dir2\ftptest.txt'    // filename to copy

    

        (* This will cause the file to be copied! *)

        SEND_COMMAND vdvFTPDiag,"'COPY-',cSFileName,';',cDFileName"

        cButtonPressed = 4

      }

    }

  }

}

(* FTP Activity *)

DATA_EVENT[vdvFTPDiag]

{

  STRING:

    SEND_STRING 0,"'From FTPModule: ',DATA.TEXT"

}

(***********************************************************)

(*            THE ACTUAL PROGRAM GOES BELOW                *)

Continued

Содержание I!-FTPSENDER

Страница 1: ...instruction manual integration Solutions i FTPSender...

Страница 2: ...any accompanying hardware This limited warranty gives you specific legal rights You may have others which vary from state country to state country NO LIABILITY FOR CONSEQUENTIAL DAMAGES In no event sh...

Страница 3: ...Contents Introduction 1 Supported Operating Systems 1 Minimum PC Requirements 1 Installing i FTPSender 1 Running i FTPSender 3 Programming 3 Channels 3 Strings 3 Send_Commands 3 Example Code 4 Troubl...

Страница 4: ...ii i FTPSender Table of Contents...

Страница 5: ...B of installed memory Minimum PC Requirements Windows compatible mouse or other pointing device At least 5 MB of free disk space 150 MB recommended VGA monitor with a minimum screen resolution of 800...

Страница 6: ...Introduction 2 i FTPSender...

Страница 7: ...debugging messages from the module are printed to terminal i FTPSender Strings S code message Source server message Code is the FTP return code and message is a mes sage associated with code D code me...

Страница 8: ...rBusy 251 flag if destination socket is open DATA TYPE DEFINITIONS GO BELOW DEFINE_TYPE VARIABLE DEFINITIONS GO BELOW DEFINE_VARIABLE CHAR cSourceIP 200 CHAR cSourceUser 140 CHAR cSourcePass 140 CHAR...

Страница 9: ...t txt filename to copy cDFileName dir1 ftptest txt filename to copy This will cause the file to be copied SEND_COMMAND vdvFTPDiag COPY cSFileName cDFileName cButtonPressed 2 CASE 3 File cSFileName dir...

Страница 10: ...le does not exist The destination directory does not exist The destination user does not have write access to save the new file All of these problems can be solved by watching the strings provided fro...

Страница 11: ...Running i FTPSender 7 i FTPSender...

Страница 12: ...ve richardson TX 75082 USA 469 624 8000 800 222 0193 fax 469 624 7153 technical support 800 932 6993 033 004 2551 1 05 2005 AMX Corporation All rights reserved AMX the AMX logo the building icon the h...

Отзывы: