home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
tcp
/
Networking
/
TCP
/
FTP
/
DaFTP
/
Rexx
/
put.daftp
< prev
Wrap
Text File
|
1994-12-26
|
540b
|
36 lines
/* Put.daftp */
/* uses DaFTP to put file <file> to directory <dir> to site <site>
* of your hotlist
* By Osma Ahvenlampi
*/
parse arg file site dir ascii
if file = "" then
exit 10
if ~show('P','daftp') then do
address command 'Run >NIL: DaFTP'
address command 'WaitForPort daftp >NIL:'
if RC ~= 0 then
exit 20
end
if ascii ~= "" then
mode = "ASCII"
else
mode = "BIN"
address 'daftp'
if site ~= "" then
'site' site
if dir ~= "" then
'setattr remotedir' dir
'connect noscan'
'put' mode 'file' file
'disconnect'
exit 0