Page 1 of 1

Batch File to do a scheduled ftp upload

Posted: 12 Aug 2009 09:59
by ashkev
I need to do a daily upload of a couple of files.

I have a batch file that creates 2 files each day, and puts them into a folder called export. The file also deletes any files that are there from the previous day. The files are named with todays date in them, so for example todays files are:
zv056bib20090812 and zv056pat20090812.txt

on the server the files need to go into the directory \home\zv056.

The server does require ssl connection. Do you think this is possible?

Thanks

Kevin

Try this

Posted: 16 Aug 2009 16:44
by subhashchy
you can try it.

It works on non-SSL ftp servers.

not tested over ssl.

@echo off
title ***********Ftp transfer program by UR NAME ***********
erase c:\ft.txt /f
echo echo.
cd \

(
echo o "your FTP address"
echo "USERNAME"
echo "Password"
echo cd \home\zv056
echo mput *.*
echo y
echo y
echo y
echo y
echo y
echo y
echo by
)>>c:\ft.txt
rem cd (change to directory where your files are)
ftp -s:c:\ft.txt


Try it and let me know where it goes.