Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FTP with PowerBuilder 8.0 (client/server exe program)

563 views
Skip to first unread message

Maurizio

unread,
Feb 15, 2005, 6:58:06 AM2/15/05
to
How can I send via FTP files from a client/server exe
program (developed with PowerBuilder 8.0) to a server FTP ?
Is there any library?

TDR

unread,
Feb 15, 2005, 8:10:39 AM2/15/05
to
> How can I send via FTP files from a client/server exe
> program (developed with PowerBuilder 8.0) to a server FTP
> ? Is there any library?

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

Maurizio

unread,
Feb 15, 2005, 8:28:29 AM2/15/05
to
> if your on a MS operating system there is an FTP util.
> ftp.exe

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)

Terry Voth [TeamSybase]

unread,
Feb 15, 2005, 8:44:37 AM2/15/05
to
There is a sample FTP app in the PowerBuilder section of CodeXchange
(http://powerbuilder.codexchange.sybase.com). You might want to look at that and
see if it meets your requirements.

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
=*=

Mark Pare

unread,
Feb 19, 2005, 12:19:26 PM2/19/05
to
Hi Terry, can you say where exactly under PowerBuilder the code exists? I'm
looking and there isn't anything that says FTP specifically. Thanks

"Terry Voth [TeamSybase]" <seq...@techno-kitten.com> wrote in message
news:4211fcc5$1@forums-1-dub...

Doug Porter

unread,
Feb 20, 2005, 7:01:30 AM2/20/05
to
It is under "PB Historical Code Samples, etc. - PB 5" or you can type in FTP
in the search box on the page.

Doug Porter
DailyAccess Corporation

"Mark Pare" <mark...@videotron.ca> wrote in message
news:4217751e$1@forums-1-dub...

0 new messages