You are not logged in.

#1 09 Feb 2007 12:02

Splat
Member
Registered: 09 Feb 2007
Posts: 6

Executing FTP Commands

Hi,


I have been reading up on the FTP commands in the SS64 documents and I was wondering if it is possible to run a series of FTP commands without using an external script (i.e. commands.ftp). I would like to be able to connect to a server via FTP, login, run a few commands, then close the FTP connection all within the same BAT file but there don't appear to be any examples of that in the SS64 docs.


Thanks,
Si ++

Offline

#2 09 Feb 2007 12:48

Simon Sheppard
Admin
Registered: 27 Aug 2005
Posts: 1,130
Website

Re: Executing FTP Commands

I'm pretty sure the only way to do that would be with a utility like AutoIT or scriptit
http://www.ss64.com/nt/scriptit.html

other approaches are: have the batch file build the script with a series of ECHO statements, run the FTP and then DEL the script.
or you may want to look at third party FTP clients.

Offline

#3 09 Feb 2007 13:19

Splat
Member
Registered: 09 Feb 2007
Posts: 6

Re: Executing FTP Commands

Thanks for the reply, Simon.

I think I will get the batch file to build the script with echo statements, it seems like the best thing to do at the moment. This will just be a little utility file for my Flex SDK 2 toolset thing, it will just need to upload a small number of files so a third part client isn't really needed (or would be overkill).

smile

Offline

Board footer

Powered by