You use FTP.exe to manipulate files over FTP on a computer that is running Windows Vista or Windows Server 2008. When you try to redirect the FTP output to a file, nothing is redirected.

For example, you run the following command to redirect the FTP output to a file:

ftp -i -s:ftpput.txt > result.txt

When you open the output file, you see content that resembles the following text:

220 FTP Server Version 2.0
331 User name ok, need password
230 User logged in
put [Path\filename]
200 PORT command successful.
150 File status OK ; about to open data connection
226 Closing data connection; File transfer successful.
0.190.09bye ******
221 Service closing control connection

In this redirected content, the FTP message is missing in the “0.190.09bye ******” line.

Leave a Reply