Your location:Tech News>OS>Windows Sever>How to download and download files from a remote FTP server in the cmd environment of the window system

Latest News

How to download and download files from a remote FTP server in the cmd environment of the window system

Author:fsadmin

Views:

We will always encounter this or that problem. How do you download files from the remote FTP server in the cmd environment of the window system?

  看Look at the following method which may help you:

  @echo off

  rem Specify FTP user name

  set ftpUser=FTPUSERYGL

  rem specify FTP password

  set ftpPass=FTPUSER

  rem specify FTP server address

  set ftpIP=10.16.12.101

  rem specify Which directory of the FTP server is the file to be downloaded

  set ftpFolder=/MBX-YGL-IN/UE0620/MBX-YGL-FTP/

  rem Specify the file downloaded from FTP Which directory to store in this machine

  set LocalFolder=D:/Download

  set ftpFile=%temp%/TempFTP.txt

  \u0026gt;\u0026quot;%ftpFile %\u0026quot; (

  echo%ftpUser%

  echo%ftpPass%

  echo cd \u0026quot;%ftpFolder%\u0026quot;

  echo lcd \u0026quot;%LocalFolder%\u0026quot;

  echo bin

  echo mget *.*

  echo bye

  )

p>

  start ftp -v -i -s:\u0026quot;%ftpFile%\u0026quot; %ftpIP%

?How to realize sliding down to shut down

Recommend article

Relate article