Upload files to a remote FTP server in Windows cmd

Source: Internet
Author: User
Tags remote ftp server

In Windows cmd, upload files to the remote FTP server through rem *************************** * *************************** set server = 10.16.12.101 rem user name set usernm = FTPUSERYGL set passwd = FTPUSER rem local file path set locpath = C: \ rem file name set locfile = UF0500.csv rem file path set serpath =/MBX-YGL-IN/UF0500/MBX-YGL-FTP/rem Remote Server File Name set serfile = UF0500.csv rem file set method = put c: \ UF0500.csv. /MBX-YGL-IN/UF0500/MBX-YGL-FTP/_ FILE Set mode = bin ASC rem *************************** * **************************** set d = % DATE: ~ 4% echo open % server %> ftp.txt echo user % usernm % passwd %> ftp.txt echo % mode %> ftp.txt echo cd % serpath %> ftp.txt echo LCD % locpath %>> ftp.txt echo prompt> ftp.txt echo % method % locfile %> ftp.txt echo bye> ftp.txt ftp-n-s: ftp.txt> Archive_Batch _ % d:/= %. log echo del ftp.txt

Related Article

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.