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...
Страница 4: ...ii i FTPSender Table of Contents...
Страница 6: ...Introduction 2 i FTPSender...
Страница 11: ...Running i FTPSender 7 i FTPSender...