Batch File to do a scheduled ftp upload

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
ashkev
Posts: 1
Joined: 12 Aug 2009 09:34

Batch File to do a scheduled ftp upload

#1 Post by ashkev » 12 Aug 2009 09:59

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

subhashchy
Posts: 2
Joined: 16 Aug 2009 15:02

Try this

#2 Post by subhashchy » 16 Aug 2009 16:44

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.

Post Reply