tags:

views:

18

answers:

2

I am trying to login to an FTP server from VB script and execute some commands.

manually we login to ftp server with:

ftp my.server.name
Enter Uname: _
Enter Pwd: _

uname and pwd are prompts for the user. How can I do this from VB script? if there was a way to login to a ftp server by supplying uname and pwd in the same line then I could just execute one line from the VB script.

How can i do this?

A: 

Here's a way

http://www.naterice.com/articles/51

Only problem is you pass credentials in plain text in this script and it presents a potential security risk.

Ed B
A: 

You can create a commands file and use that as an input to the FTP

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaiq/rzaiqcrtftpinput.htm

Raj More