Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows system built-in ftp client and related commands

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Objective: to learn to use windows system to build ftp client and related commands.

Environment: windows 7

Scenario: multiple devices need to back up their configuration files, set them to automatic backup tomorrow, download them to the server as a FTP service, and save them on a date.

Here you need to use the FTP service, which is generally shipped with the system and can be run using command mode or written as a batch script.

The ftp command supports interaction and performing configuration operations:

The parameters are as follows:

-v suppresses the display of remote server responses.

-n disables automatic login on initial connection.

-I turn off interactive prompts during multi-file transfer.

-d enable debugging.

-g disable filename wildcard (see glob command).

-s:filename specifies the text file that contains the ftp command; the command runs automatically after ftp starts.

-a use all local interfaces when binding data connections.

-A log in anonymously.

-x:send sockbuf overrides the default so_sndbuf size of 8192.

-r:recv sockbuf overrides the default so_rcvbuf size of 8192.

-b:async count overrides the default asynchronous count of 3

-w:windowsize overrides the default transfer buffer size of 65535.

Host specifies the host name or the ip address of the remote host to connect to.

Note: the-mget and mput commands treat y/n/q as yes/no/quit.

-abort the command using ctrl-c.

Interactive:

Enter ftp to enter the interactive: open ip address, open the ftp link, then prompt for the user name, and then enter the password.

Lcd local path, setting local path

Cd local path, jump to local path

Get remote file path file local file, download remote file to local

Put local files remote files, upload local to remote

Both bye and quit are used to exit.

Automatic batch processing can be done in the way the configuration file is executed. The configuration file can be a text document with the extension cfg, and the format within the document is as follows:

Open ip address login name login password cd local path get remote file path file local file bye

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report