2Q's - COM handles and FTP

mpowell

Member
I have 2 problems really.

1)
I was wondering how I can find out the COM handle properties of any applications I want to use within my Progess software, say Outlook Express or Word?

2)
I want to be able to ftp as a batch.
I can do a DOS ftp.address.
but how do I then pass a username and password?
Both my progress and DOS session pause.
Any ideas?

Thanks
Regards
Martin Powell
 

jamesmc

Member
Martin,

Do you want the program to pass the username and password to the ftp session or can they be stored in a text file somewhere?

James.
 

rich_t

New Member
Martin,

I do the following:

<BLOCKQUOTE><font size="1" face="Arial, Verdana">code:</font><HR><pre>
OS-COMMAND SILENT ftp -i -n < command.txt.
[/code]

Where command.txt contains:

open hostname or ip address
user username
password
bin or asc
cd directory
lcd directory
get or mget filename
put or mput filename
quit

Basically, run ftp in non-interactive mode with no login prompt and let the command file handle it all for you. I usually generate the command file prior to the OS-COMMAND, changing the file name to the one I want to get or send.

HTH

Rich



<FONT COLOR="#000000" SIZE="1" FACE="Arial, Verdana">[This message has been edited by rich_t on 21 July 2000 @ ]</font>
 
Top