windows - how do I log dir from FTP -


i made ftp script need logging of transfer specially list of files on remote ftp (result of ls or dir) , log of ftp commands, not result

get.bat

ftp -v -n -i -s:d:\ax\get.ftp >>d:\ax\ftplog.txt 

get.ftp

open ftp.xxxxxx.xx  user xxxxxxx xxxxxxxx binary cd /out ascii ls >>d:\ax\ftplog.txt lcd "\import" mget *.* s mdelete *.* bye 

result:

open ftp.xxxxxx.xx  user xxxxxx binary cd /out ascii ls >>d:\ax\ftplog.txt lcd "\import" mget *.* s bye 

and want see is:

230 login successful. ftp> dir 200 port command successful. consider using pasv. 150 here comes directory listing. drwxrwxrwx    2 ftp      ftp          4096 apr 25 10:10 in drwxrwxrwx    2 ftp      ftp          4096 apr 24 15:39 out 226 directory send ok. ftp: 121 bytes received in 0,02seconds 7,56kbytes/sec. 

how do that

read ftp -? , notice -v parameter that, according documentation, means

-v suppresses display of remote server responses.

so, remove parameter command line

 ftp -n -i -s:d:\ax\get.ftp >>d:\ax\ftplog.txt 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -