Saturday, October 9, 2010

[MSDOS] FTP Upload

Below sample how we can implement ftp by using Dos.

ftpbackup.bat
--------------
echo off
echo %date%
SET aa=%date:~7,2%
echo %aa%
ftp -s:ftp%aa%.txt

ftp01.txt
---------
open [ip address]
[username]
[password]
cd /ddrive/autobackup
binary
put file01.zip
quit

Then we can put this into scheduler thus we will have auto ftp processes the way we wanted.

No comments:

Post a Comment