if your on a MS operating system there is an FTP util.
ftp.exe
you could write a script file from PB and call the ftp pgm
to use it.
(supperss auto login and use script file)
ex:ftp -n -s:ftp.txt
here an script file: (ftp.txt)
open ftpdev01
user tim tpsword
cd /home/fred/ftpdir/
put ftp.txt
bye
here are the dos ftp commands: (ftp --)
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a]
[-w:windowsize] [-A] [host]
-v Suppresses display of remote server
responses.
-n Suppresses auto-login upon initial
connection.
-i Turns off interactive prompting during
multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB
command).
-s:filename Specifies a text file containing FTP
commands; the
commands will automatically run after FTP
starts.
-a Use any local interface when binding data
connection.
-A login as anonymous.
-w:buffersize Overrides the default transfer buffer size
of 4096.
host Specifies the host name or IP address of
the remote
host to connect to.
Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.
once in the ftp pgm - here are the ftp commands: (ftp> help)
! delete literal prompt
send
? debug ls put
status
append dir mdelete pwd
trace
ascii disconnect mdir quit
type
bell get mget quote
user
binary glob mkdir recv
verbose
bye hash mls remotehelp
cd help mput rename
close lcd open rmdir
HTH Tim
Thanks, but i have just done with dos ftp, but with it i
dont know the response of the ftp transfer, i'd like have a
progress bar of the transfer (i need to transfer a lot of
file)
Good luck,
Terry [TeamSybase] and Sequel the techno-kitten
On 15 Feb 2005 03:58:06 -0800,
in sybase.public.powerbuilder.general
*********************************
Click once a day to help the hungry
http://www.thehungersite.com
*********************************
Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a free PowerBuilder Developer's Toolkit.
Version 2.2.06 now available at the Sandbox
See the PB Troubleshooting Guide at the Sandbox
^ ^
o o
=*=
"Terry Voth [TeamSybase]" <seq...@techno-kitten.com> wrote in message
news:4211fcc5$1@forums-1-dub...
Doug Porter
DailyAccess Corporation
"Mark Pare" <mark...@videotron.ca> wrote in message
news:4217751e$1@forums-1-dub...