bat script to implement FTP automatic download and upload example code
1. Automatic download
# Example: Implement automatic download @echo Off echo open 192.168.137.102>>ftp.txt echo admin>>ftp.txt echo admin12345>>ftp.txt echo lcd D:\>>ftp.txt echo cd /admin/1>>ftp.txt echo bin>>ftp.txt echo get 11>>ftp.txt echo bye>>ftp.txt ftp -s:ftp.txt
Or use the following format
txt file open 192.168.137.102 admin admin12345 prompt off lcd D:\ cd /admin/1 bin mget 11 bye quit@echo off ftp -s:C:\Users\Dxx\Desktop\ftp.txt
2. Automatic upload
@echo off echo open 192.168.137.102>>ftpPut.txt echo admin>>ftpPut.txt echo admin12345>>ftpPut.txt echo lcd D:\ftp>>ftpPut.txt echo cd admin/1>>ftpPut.txt echo prompt off>>ftpPut.txt echo put 12.txt>>ftpPut.txt echo bye>>ftpPut.txt echo quit>>ftpPut.txt ftp -s:ftpPut.txt
To this article about the bat script to achieve FTP automatic download and upload sample code is introduced to this article, more related bat FTP automatic download and upload content please search the script home previous articles or continue to browse the following related articles hope that you will support the script home in the future!
Related article
-
cygwin's method of using linux commands under windows
Anyone who has used linxu will probably love linux's various powerful commands such as grep, sed, awk, diff, and patch. cygwin is a linux emulator for windows and is an option for people who want to use linux commands under windows.2011-07-07 -
BAT batch processing One-click APK package script sharing
This article mainly introduces BAT batch processing one-key generation APK package script sharing, this script is suitable for cocos2dx+lua project, need friends can refer to2015-04-04 -
The cmd md command creates the folder
The md command is used to create the folder, which is written as mkdir (derived from MakeDirectory) in the format: md folder name, where folder names can be in the format with paths.2009-07-07 -
Check the bat file of the network information
Check network information bat[batch] file...2007-08-08 -
cmd shortcut key for copying and pasting
The shortcut keys for copying and pasting in cmd are used to facilitate quick copying and pasting in cmd.2011-04-04 -
Batch files that automatically change back to the home page
Batch files that automatically change back to the home page...2007-08-08 -
Modify the batch processing and vbs code of the ini file
This article mainly introduces the modification of ini file batch processing and vbs code, need friends can refer to the next2017-05-05 -
Batch file (bat file) Register DLLS. Register DLLS in batches
Sometimes when using the computer, there are various failures caused by the loss or damage of DLL files, everyone only knows that as long as you re-register the DLL file2012-05-05 -
Prompt, Restore command description
Prompt, Restore command usage...2006-09-09 -
Method for backing up hard disk boot records
Method of backing up hard drive boot records...2007-03-03
Latest comments