如何在Windows中连接到FTP服务器(无需额外的软件)

时间:2024-12-10 17:28:43

If you need to access an FTP server, you can install dedicated FTP clients with lots of features –but you don’t necessarily have to. Windows itself offers several ways for connecting to an FTP server, allowing you to download and upload files in a pinch.

如果您需要访问FTP服务器,则可以安装具有很多功能的专用FTP客户端,但不一定必须这样做。 Windows本身提供了几种连接到FTP服务器的方式,使您可以少量下载和上传文件。

如何在Windows的文件资源管理器中访问FTP服务器 (How to Access FTP Servers in Windows’ File Explorer)

The Windows file manager–known as File Explorer on Windows 10 and 8, and Windows Explorer on Windows 7–allows you to connect to FTP servers.

Windows文件管理器(在Windows 10和8上称为文件资源管理器,在Windows 7上称为Windows资源管理器)使您可以连接到FTP服务器。

To connect to an FTP server, open a File Explorer or Windows Explorer window, click the “This PC” or “Computer”. Right-click in the right pane and select “Add a network location”.

要连接到FTP服务器,请打开文件资源管理器或Windows资源管理器窗口,单击“此PC”或“计算机”。 右键单击右窗格,然后选择“添加网络位置”。

Go through the wizard that appears and select “Choose a custom network location”.

浏览出现的向导,然后选择“选择自定义网络位置”。

In the “Specify the location of your website” dialog, enter the address of the ftp server in the form ftp:// .

在“指定网站的位置”对话框中,以ftp://的形式输入ftp服务器的地址。

For example, Microsoft’s FTP server is , so we’d enter ftp:// here if we wanted to connect to that particular server.

例如,Microsoft的FTP服务器是,因此,如果要连接到该特定服务器,请在此处输入ftp://

If you don’t have a username and password, you can often check the “Log on anonymously” box and sign into the server without a username and password. This gives you limited access to the server–you can generally download publicly available files but not upload files, for example.

如果您没有用户名和密码,则通常可以选中“匿名登录”框,然后使用用户名和密码登录服务器。 这使您只能访问服务器-例如,通常您可以下载公用文件,但不能上传文件。

If you do have a username and password, enter your username here. The first time you connect to the FTP server, you’ll be prompted to enter your password.

如果您确实有用户名和密码,请在此处输入您的用户名。 第一次连接FTP服务器时,系统会提示您输入密码。

You’ll now be asked to enter a name for the network location. Enter whatever name you like–the FTP site will appear with this name so you can easily remember which is which.

现在将要求您输入网络位置的名称。 输入您喜欢的名称-FTP站点将以该名称显示,因此您可以轻松记住哪个名称。

When you’re done, the FTP site will appear under “Network locations” in the This PC or Computer pane. Download files and upload files by copying and pasting them to and from this folder.

完成后,FTP站点将出现在“此PC或计算机”窗格中的“网络位置”下。 通过将文件复制到该文件夹​​或从此文件夹粘贴来下载文件和上传文件。

如何在命令提示符下访问FTP服务器 (How to Access FTP Servers in the Command Prompt)

You can also do this with the ftp command in a Command Prompt window. This command is comes built into Windows.

您也可以在“命令提示符”窗口中使用ftp命令执行此操作。 此命令内置于Windows中。

To do this, open a Command Prompt window. On Windows 10 or 8, right-click the Start button or press Windows+X on your keyboard and select “Command Prompt”. On Windows 7, search the Start menu for “Command Prompt”.

为此,请打开“命令提示符”窗口。 在Windows 10或8上,右键单击开始按钮,或在键盘上按Windows + X,然后选择“命令提示符”。 在Windows 7上,在“开始”菜单中搜索“命令提示符”。

Type ftp at the prompt and press Enter. The prompt will change to an ftp> prompt.

在提示符下键入ftp ,然后按Enter。 该提示将变为ftp>提示。

To connect to a server, type open followed by the address of the FTP server. For example, to connect to Microsoft’s FTP server, you’d type:

要连接到服务器,请键入open然后输入FTP服务器的地址。 例如,要连接到Microsoft的FTP服务器,请输入:

open 

You’ll then be prompted for a username. Enter the username and password to connect to the site. If you don’t have one, you can enter “Anonymous” followed by a blank password to see if the FTP server allows anonymous access.

然后将提示您输入用户名。 输入用户名和密码以连接到该站点。 如果没有密码,则可以输入“匿名”,然后输入一个空白密码以查看FTP服务器是否允许匿名访问。

Once you’re connected, you can navigate the FTP server with the dir and cd commands. To view the contents of the current directory, type:

建立连接后,您可以使用dircd命令浏览FTP服务器。 要查看当前目录的内容,请键入:

dir

To change to another directory, type the cd command followed by the name of the directory. For example, you’d type the following command to change to a directory named “example”:

要更改到另一个目录,请键入cd命令,后跟目录名称。 例如,您将键入以下命令以更改为名为“ example”的目录:

cd example

To upload or download files, use the get and push commands.

要上传或下载文件,请使用getpush命令。

For example, to download a file named in the current FTP folder, you’d type:

例如,要在当前的FTP文件夹中下载名为的文件,请输入:

get 

To upload a file stored on your desktop named to the FTP server, you’d type:

要将存储在桌面上的名为的文件上传到FTP服务器,请输入:

put "C:\Users\YOURNAME\Desktop\"

When you’re done, just type the following command and press Enter to close the connection:

完成后,只需键入以下命令,然后按Enter键即可关闭连接:

quit

While apps like Cyberduck or FileZilla offer plenty of advanced features that Windows’ built-in options don’t, both of the above are great options for basic FTP browsing, uploading, and downloading.

尽管诸如Cyber​​duckFileZilla之类的应用程序提供了Windows内置选项所没有的许多高级功能,但以上两种都是基本的FTP浏览,上传和下载的绝佳选择。

翻译自: /272176/how-to-connect-to-ftp-servers-in-windows-without-extra-software/