Try to walk before you run, by working with small text
files located in the current folder. Here is a screen shot
of what I did:
- Create two small text files (dir.txt and date.txt)
- Append date.txt to dir.txt
It worked as expected.
Note that the ftp "append" command appends data to a
file located on the FTP server. Your own example appears
to do the opposite: append data to a file located on your
hard disk. It does not work like this.
c:\>dir > dir.txt
c:\>echo %date% > date.txt
c:\>ftp pegasus.info
Connected to pegasus.info.
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 08:41. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
User (pegasus.info
none)): pegasus
331 User pegasus OK. Password required
Password:
230-User pegasus has group access to: pegasus
230 OK. Current restricted directory is /
ftp> put dir.txt
200 PORT command successful
150 Connecting to port 1182
226-File successfully transferred
226 0.301 seconds (measured here), 2.52 Kbytes per second
ftp: 796 bytes sent in 0.00Seconds 796000.00Kbytes/sec.
ftp> append date.txt dir.txt
200 PORT command successful
150 Connecting to port 1183
226-File successfully transferred
226 0.304 seconds (measured here), 2.49 Kbytes per second
ftp: 796 bytes sent in 0.00Seconds 796000.00Kbytes/sec.
ftp> get dir.txt
200 PORT command successful
150 Connecting to port 1184
226-File successfully transferred
226 0.000 seconds (measured here), 6.93 Mbytes per second
ftp: 796 bytes received in 0.02Seconds 39.80Kbytes/sec.
ftp> quit
221-Goodbye. You uploaded 2 and downloaded 1 kbytes.
221 Logout.
c:\>type dir.txt
Volume in drive C is System
Directory of c:\
05/12/2005 11:16 <DIR> Documents and Settings
26/12/2005 22:00 <DIR> Exchange
01/02/2006 08:20 <DIR> Outlook Express
31/01/2006 22:05 <DIR> Program Files
01/02/2006 08:06 <DIR> Temp
31/01/2006 21:09 <DIR> Tools
30/01/2006 13:00 <DIR> WINNT
1 File(s) 0 bytes
11 Dir(s) 4,404,011,008 bytes free
Wed 01/02/2006
Yamabuki said:
Hi,
The commands are:
ftp> o 172,23,1,47
Host desconocido 172,23,1,47.
ftp> o 172.23.1.47
Conectado a 172.23.1.47.
220 barcelon FTP server (Version V02.2A00, Jan 19 2000 13:53:48) re
Usuario (172.23.1.47
none)): cuafab
331 Password required for cuafab.
Contraseña:
332 Account required.
Cuenta: s
230 User CUAFAB logged in.
ftp> append "M:\GESFAP\Etipap\Reker\bat_FTP\E1PDTE.TXT" FX.E1PDTE1.
200 PORT command successful.
150 Opening data connection for FX.E1PDTE1.ZAR (172.17.20.5,2292).
.......... I have to close the windows because if i don't, the windows is
opened for years,......
Thanks,
Núria
"Pegasus (MVP)" escribió: