Related:
- Bash script for ftp file transfer
- Ftp models - Guide
- Bash reverse file - Guide
- Free fire transfer - Guide
- Dvi file - Guide
- Android file transfer mac download - Download - File management
2 responses
Richard.Williams
Posts
25
Registration date
Saturday 7 November 2009
Status
Member
Last seen
18 July 2012
14
29 Jan 2010 à 09:48
29 Jan 2010 à 09:48
Here is a script that will run on all Windows versions. The script will upload C:\temp\cpDailyLog.txt file to an FTP server daily.
This script is in biterscripting. Save the script in file "C:/Scripts/UploadDailyLog.txt", then schedule the following command to run daily.
# Script UploadDailyLog.txt # Input arguments var str ftpserver, ftplogin, ftppassword echo $ftplogin "\n" $ftppassword > "C:/ftpcommands.txt" echo "put \"C:\temp\cpDailyLog.txt\"" >> "C:/ftpcommands.txt" echo "bye" >> "C:/ftpcommands.txt" system ftp -s:C:/ftpcommands.txt $ftpserver system del "C:/ftpcommands.txt"
This script is in biterscripting. Save the script in file "C:/Scripts/UploadDailyLog.txt", then schedule the following command to run daily.
"C:/biterScripting/biterScripting.exe" "C:/Scripts/UploadDailyLog.txt" ftpserver("ftp.myftpserver.com") ftplogin("mylogin") ftppassword("mypassword")
9 Mar 2010 à 08:33