WINSCP Bulk Download Script

Source: Internet
Author: User

Background: Before writing the upload file, now is the download file

Note: Commands need to be executed on one line, variable settings can be divided into multiple lines

---------------------------------------------------Split Line----------------------------------------------------------

:: Setting parameters
:: WINSCP Installation path
SET ROOTPATH=C:\KIT\WINSCP
:: Sftp Path
SET Sftppath=sftp://user:[email protected]:p ORT
:: Local file path (Windows)
SET localfilepath=c:\users\island\desktop\upload\
:: Destination file path (Linux)
SET Targetfilepath=/usr/upload
:: Local Log flag
SET Logpath=/log
:: Local log file name
SET Logfilename=download_log_file.txt

:: Command parsing
:: Winscp.exe/console/command "option Batch Continue" "option confirm off" "open Sftp://user:[email Protected]:p ort" "opt Ion transfer binary "put/server file directory d:\ file path to upload" "Exit"/log=log_file.txt

:: Winscp.exe/console/command---command name
:: "option Batch Continue"---default batch
:: "option confirm off"---to turn off prompt information
:: "Open ftp://user:[email protected]:p ORT user"---access username, pwd: User password, IP:IP address, Port: port number Default 22
:: "option transfer binary"---sent using binary format
:: Log=log_file.txt---Log file address
:: "Exit"---run out
CD%rootpath%
Winscp.exe/console/command "option Batch Continue" "option confirm off" "Open%sftppath%" "option transfer binary" "get %targetfilepath%%localfilepath% "Exit"%logpath%=%logfilename%

WINSCP Bulk Download Script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.