Ftp bat automatic overwrite files

Closed
techpros - May 26, 2010 at 01:00 PM
xpcman Posts 19530 Registration date Wednesday October 8, 2008 Status Contributor Last seen June 15, 2019 - May 26, 2010 at 04:32 PM
Hello,
I have a .bat script that is being run every three minutes to update weather info. But it is asking me every time for every upload if I want to overwrite the existing file. I want to to just automatically overwrite it without asking me. here is my bat file:


cd grayville.org/data

ascii
put "c:\vws\upload\weatherinfo.txt"
binary

put "c:\vws\jpeg\broadcast.jpg"
put "c:\vws\jpeg\vws457.jpg"
put "c:\vws\jpeg\vws458.jpg"
put "c:\vws\jpeg\vws459.jpg"

cd ../../graylight.org/data
binary

put "c:\program files\aninoquisi\lightning2000\lightning.jpg"

ascii

put "C:\Documents and Settings\norman\Desktop\info.txt"
put "C:\Program Files\Aninoquisi\Lightning2000\Nowcasts\lightning.txt"
close
exit



Related:

1 response

xpcman Posts 19530 Registration date Wednesday October 8, 2008 Status Contributor Last seen June 15, 2019 1,826
May 26, 2010 at 04:32 PM
the put command has no option to replace. You could use the delete command first.

Good Luck
0