FTP upload batch
Posted: 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.
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