automati ftp transfer

  • Thread starter Thread starter Rolf
  • Start date Start date
R

Rolf

hi all,
i have some problems with the automatic import from a ftp server. i wrote a
file named test.ftp

-----------------------
open www.xxx.com
username
passwort
cd /verz
get test.txt
bye
 
hi all,
i have some problems with the automatic import from a ftp server. i wrote a
file named test.ftp

-----------------------
open www.xxx.com
username
passwort
cd /verz
get test.txt
bye
------------------------

my test.cmd file has follwing code inside:
----------------------
ftp -s:test.ftp
----------------------

now i get the text: text ftp -s:test.ftp again and again.
but no download is starting.
rolf
Try
ftp -n -i -s:test.ftp ftp.xxxx.com

user Username password
binary
cd verz
get test.txt
close
quit


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Rolf said:
hi all,
i have some problems with the automatic import from a ftp server. i wrote a
file named test.ftp

-----------------------
open www.xxx.com
username
passwort
cd /verz
get test.txt
bye
------------------------
this is an input file to ftp. After an open you are asked for the next
command, which is "user" followed by username. See my signature and
hh ntcmds.chm::/ftp__user.htm
my test.cmd file has follwing code inside:
----------------------
ftp -s:test.ftp
----------------------

now i get the text: text ftp -s:test.ftp again and again.
but no download is starting.
rolf
The problem is that all this isn't interactive, the commands you issue
through the file have to fit _exactly_ what ftp expects.
 
thank you.
but it has the same effect.

where i can find good informations about this. in the window helpfiles i
can't find batch jobs for this.

follwoing manual job works
cmd..exe
ftp
open www.xxx.com
username
password
cd dir
get test.txt

how can i do this in a batch job like a cmd file.
rolf
 
copy it all into notepad, then save the document with
a .BAT extension.

HTH.

Chris.
-----Original Message-----
thank you.
but it has the same effect.

where i can find good informations about this. in the window helpfiles i
can't find batch jobs for this.

follwoing manual job works
cmd..exe
ftp
open www.xxx.com
username
password
cd dir
get test.txt

how can i do this in a batch job like a cmd file.
rolf


 
Back
Top