FTP upload batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Nicarlo
Posts: 1
Joined: 08 Apr 2009 11:55

FTP upload batch

#1 Post by Nicarlo » 08 Apr 2009 12:16

Hey guys

im trying to do something kinda complicated.

I need to make a batch file that will connect to an ftp and create a new folder with today's date and time and then upload everything from one folder.

I have found this in the forums search but like to make sure this is ok.

Code: Select all

Echo Open xx.xx.xx.xx         > %Temp%\FTPScript
Echo User username passwrd       >> %Temp%\FTPScript
Echo CD \DestFolder          >> %Temp%\FTPScript
Echo LCD \SourceFolder       >> %Temp%\FTPScript

:GetAnotherFile


  Echo Put vardate c:\targetfile   >> %Temp%\FTPScript
 
:FTPJob

ftp -n -s:%Temp%\FTPScript  > %Temp%\FTPJob.Log

Post Reply