|I have a batch script to run a FTP transfer of 1 zip each night this has been working great for over a 1 year now and still is on the XP machine but I have moved the files over to a windows 7 machine and the still transfer the zip file and create a log file but it is blank. I have tried this on 3 different windows 7 machines to get same result no matter if the machine is 32 or 64 bit. I would like to get the log file work because as you can see from the batch file listed below once the ftp is done it calls another batch file called blat that emails the contents of the ftplog.txt file to me so that I know the ftp transfer completed. |
I added below the contents of my batch file, script file and log file as on the windows XP machine. I have tried coping and recreating the files with same settings on the windows 7 machines and the long that that does not work is I do not see any content in the log file that is created. Any and all help is appreciated with this issue because I am trying to get my email notification back.
Contents of batch file to ftp zip file
ftp -i -s:\ftp.txt 1>c:\logs\ftplog.txt
Contents of ftp.txt
@ftp -i -s:"%~f0"&GOTO:EOF
open 192.168.90.15 21
!:--- FTP commands below here ---
put "K:\Backups\Daily Offsite Backup\*.zip"
Contents of ftplog.txt
ftp> Invalid command. ftp> @ftp -i -s:"%~f0"&GOTO:EOF
Connected to 192.168.90.15. open 192.168.90.15 21
220 Serv-U FTP Server v6.0 for WinSock ready...
331 User name okay, need password.
230 User logged in, proceed.
ftp> ftp> !:--- FTP commands below here ---
200 Type set to A.
ftp> cd backups
250 Directory changed to /d:/backups
ftp> put "K:\Backups\Daily Offsite Backup\*.zip"
200 PORT Command successful.
150 Opening ASCII mode data connection for 03-28-2011.zip.
226 Transfer complete.
ftp: 725717406 bytes sent in 14584.09Seconds 49.76Kbytes/sec. ftp> disconnect
Thanks again for any Ideas that you may have to resolve this problem