So the batch files builds the FTP script and then just runs the script.
Code: Select all
C:\WINDOWS\system32\ftp.exe -n -i -s:"%_FTPScript%">FTP_Transfer_%_LogNum%.log
When I ran it on XP last week the output looked nice and neat.
Code: Select all
ftp> Connected to ftp.server.com.
open ftp.server.com
ftp> user squash
331 Enter password
230 User logged in
ftp> cd in
250 Command CWD succeed
ftp> mkdir 99999
550 Folder 99999 already exists
ftp> cd 99999
250 Command CWD succeed
ftp> binary
200 Transfer mode set to BINARY
ftp> put "99999_FILE1.zip"
200 Command PORT succeed
150 Uploading in BINARY file 99999_FILE1.zip
226 Transfer completed
ftp: 1818669 bytes sent in 1.70Seconds 1068.55Kbytes/sec.
ftp> put "99999_FILE2.zip"
200 Command PORT succeed
150 Uploading in BINARY file 99999_FILE2.zip
226 Transfer completed
ftp: 1691791 bytes sent in 0.94Seconds 1797.87Kbytes/sec.
ftp> quit
221 bye
Ran the script this week on Windows 7 and the output to the log file wraps and it doesn't have a blank line in between each PUT execution. See how the seconds from the transfer wrap to the next line and the PUT command follows right after the seconds. Bugs the heck out of me. That shouldn't happen!
Code: Select all
ftp> Connected to ftp.server.com.
open ftp.server.com
ftp> user squash
331 Enter password
230 User logged in
ftp> cd "in/99999"
250 Command CWD succeed
ftp> binary
200 Transfer mode set to BINARY
ftp> put "99999_FILE1.zip"
200 Command PORT succeed
150 Uploading in BINARY file 99999_FILE1.zip
226 Transfer completed
ftp: 18925580 bytes sent in Seconds Kbytes/sec.
ftp> 10.591786.78put "99999_FILE2.zip"
200 Command PORT succeed
150 Uploading in BINARY file 99999_FILE2.zip
226 Transfer completed
ftp: 13624357 bytes sent in Seconds Kbytes/sec.
ftp> 9.481436.71quit
221 bye
Can anyone else confirm this happens on their version of Windows XP and/or Windows 7 please? I would really appreciate.