如果您正在寻找一种方法来添加网络位置或映射FTP驱动器并访问FTP服务器上的文件和文件夹,在Windows中,本机,那么这篇文章可能会对您有所帮助。您将能够通过Windows 文件资源管理器(Windows File Explorer)一键轻松访问网络位置上的文件。
如何映射 FTP 驱动器
您可以从Windows中直接创建或映射驱动器到您的FTP站点。
视窗 11
在Windows 11中开始映射网络驱动器:
- 打开文件资源管理器
- 在左侧导航(Navigation)栏中,右键单击此 PC
- (Select Show)从上下文菜单中选择显示更多选项
- 接下来选择映射网络驱动器。
- 或者,单击资源管理器(Explorer)顶部菜单栏中的 3 点查看(See)更多链接
- 选择映射网络驱动器
- 向导将打开。
视窗 10
打开文件资源管理器 > 计算机(此 PC)。右键单击并选择映射网络驱动器(Map Network Drive)。
您还可以使用映射网络驱动器(Map network drive)按钮:
它提供以下选项:
完成此操作后,在打开的向导框中,键入FTP 地址或(FTP address)网络驱动器(Network drive)的路径,或使用“浏览(Browse)”按钮浏览到它。您的文件夹属性(Properties)必须设置为共享(Shared)才能将其映射为网络驱动器。您将在属性 > 共享选项卡> Advanced Sharing > Check共享此文件夹(Share this folder)选项下获得设置。
选中登录时重新连接(Reconnect at sign-in)选项以使映射永久化。如果您计划使用联网计算机中的凭据访问共享文件夹,请选中使用不同凭据连接(Connect using different credentials)选项并单击确定。您将被要求输入用户名和密码Next。
您现在必须在用户名字段中使用以下格式输入用户帐户的凭据,以便您的系统知道它将连接到哪台联网计算机 - Computer\Username。浏览(Browse)到您的网络文件夹进行映射,然后单击确定。
完成此操作后,您将能够在Explorer中看到它。
要映射 FTP 站点,请单击连接到可用于存储文档和图片的网站(Connect to a website that you can use to store your documents and pictures)链接以打开添加网络位置(Add Network Location)向导。
在这里,您必须选择自定义网络位置并指定您网站的位置,指定可能需要的登录凭据并命名映射的FTP驱动器。
阅读(Read):如何使用组策略首选项映射驱动器(How to map a Drive using Group Policy Preferences)。
添加网络位置
Add a network location
Connect to a website that you can use to store your documents and pictures
取消选中匿名登录(Log for anonymously)并提供用户名和密码。单击(Click)下一步(Next)。_ 询问时,为联网位置命名。再次单击下一步(Click Next)。现在,当我单击 Finish 时选择 Open this network location(Open this network location when I click Finish)。
您将被要求输入您的凭据,一旦您这样做,您将连接到您的网络驱动器或您的 FTP 驱动器或您的网站。
如果您需要将计算机连接在一起以共享文件、在线存储文件或运行网站,这将非常有用。
提示(TIP):如果您无法映射网络驱动器,(Unable to map Network drive)请参阅此帖子。
(Map)使用命令行(Command Line)映射网络驱动(Network Drive)器
要使用命令行映射网络驱动器(Network Drives),在提升的命令提示符下,您必须运行以下命令:
net use x: \\server\share /persistent:yes
这里x是驱动器号,/persistent:yes参数使其永久化。
您可以阅读有关Net use命令的更多信息,该命令可让您将计算机连接到Technet上的共享资源。
阅读(Read):如何清除映射网络驱动器缓存(How to clear Mapped Network Drive Cache)。
(Map)使用PowerShell映射网络驱动(Network Drive)器
要使用Powershell映射网络驱动器(Network Drives),您必须运行以下命令:
New-PSDrive -Name x -PSProvider FileSystem -Root \\server\share -Persist
您可以阅读有关New-PSDrive 的更多信息,它可以帮助您在(New-PSDrive)MSDN上创建映射的网络驱动器。
相关:(Related:) 如何将 WebDAV 映射为网络驱动器(How to map WebDAV as a Network Drive)。
笔记:(NOTES:)
- 您映射的文件夹应设置为共享,然后您才能通过驱动器号访问它们
- 如果您尝试从另一台计算机访问驱动器,它应该处于打开状态并正在运行;即使计算机处于睡眠状态,您也无法访问该驱动器
- 您应该知道您尝试映射或连接为网络驱动器的文件夹、计算机或网站的凭据
- 从KillProg.com(KillProg.com)下载 FTP Drive 工具。它使包括添加驱动器号在内的几件事变得更容易
- 您可能还想查看FtpUse,这是一个免费工具,可帮助您将FTP服务器映射为本地磁盘驱动器(Disk Drive)。
- 使用Network Drive Control使Windows在您登录时自动按网络名称映射网络驱动器
- Visual Subst是一款免费工具,可让您轻松为文件夹创建虚拟驱动(Folders)器并将(Virtual Drives)云存储映射(map Cloud Storage)为虚拟驱动器(Virtual Drives)。
另见(Also see):
- 如何将OneDrive 映射为网络驱动器
- 将 OneDrive for Business 映射为网络驱动器
- 使用 Windows 命令提示符访问 FTP 服务器(Access FTP Server using Windows Command Prompt)
- How to access FTP Server using Notepad++.
如果您愿意,您还可以为您的 Windows PC下载并使用这些免费的 FTP 客户端之一。(free FTP Clients) 有些人可能也会对如何在 Windows 上设置和使用 SIP 服务器感兴趣。
How to map a Network Drive or add an FTP Drive in Windows 11/10
If you are looking for a way to add a network location or map an FTP drive and access files & folders on an FTP server, in Windows, natively, then this post may help you. You will be able to havе one-click easy access tо your files on networked locations via the Windows File Explorer.
How to Map FTP Drive
You can create or map a drive directly to your FTP site from within Windows.
Windows 11
To start mapping a network drive in Windows 11:
- Open File Explorer
- in the left Navigation bar, right-click on This PC
- Select Show more options from the context menu
- Next select Map network drive.
- Alternatively, click on the 3-dotted See more link at the Explorer top menu bar
- Select Map network drive
- The wizard will open.
Windows 10
Open File Explorer > Computer (This PC). Right-click and select Map Network Drive.
You can also use the Map network drive button:
It offers options to:
- Map network drive
- Disconnect network drive.
Having done this, in the wizard box which opens, type the FTP address or the path to your Network drive or browse to it using the Browse button. Your folder Properties must be set to Shared in order to map it as a network drive. You will get the setting under Properties > Sharing tab > Advanced Sharing > Check the Share this folder option.
Check the Reconnect at sign-in option to make the mapping permanent. If you plan to use credentials from the networked computer to access the shared folder, check the Connect using different credentials option and click OK. You will be asked to enter the username and password Next.
You will now have to enter the credentials for the user account, using the following format in the username name field so that your system knows which networked computer it is going to connect to – Computer\Username. Browse to your network folder for mapping and click OK.
Once you have done this, you will be able to see it in Explorer.
To map an FTP site, click on the Connect to a website that you can use to store your documents and pictures link to open the Add Network Location wizard.
Here you have to choose a custom network location and specify the location of your website, specify the login credentials that may be required and name the mapped FTP drive.
Read: How to map a Drive using Group Policy Preferences.
Add Network Location
Add a network location
Connect to a website that you can use to store your documents and pictures
Uncheck Log for anonymously and give the username & password. Click on Next. Give a name to the networked location, when asked. Click Next again. Now select Open this network location when I click Finish.
You will be asked to enter your credentials, and once you do so, you will be connected to your network drive or your FTP drive or your website.
This is quite useful if you need to connect your computers together for sharing files, store files online or run a website.
TIP: See this post if you are Unable to map Network drive.
Map a Network Drive using Command Line
To map Network Drives using the command line, in an elevated command prompt, you have to run the following command:
net use x: \\server\share /persistent:yes
Here x is the drive letter, and the /persistent:yes parameter makes it permanent.
You can read more about the Net use command, which lets you connect a computer to a shared resource on Technet.
Read: How to clear Mapped Network Drive Cache.
Map a Network Drive using PowerShell
To map Network Drives using Powershell, you have to run the following command:
New-PSDrive -Name x -PSProvider FileSystem -Root \\server\share -Persist
You can read more about New-PSDrive, which helps you create mapped network drives on MSDN.
Related: How to map WebDAV as a Network Drive.
NOTES:
- The folders you map should be set to SHARE before you can access them via drive letters
- If you are trying to access a drive from another computer, it should be ON and running; even if the computer is sleeping, you cannot access that drive
- You should know the credentials of the folder, computer, or website you are trying to map or connect as a network drive
- Download FTP Drive tool from KillProg.com. It makes several things including adding a drive letter easier
- You may want also to check out FtpUse, a free tool that helps you map an FTP server as a Local Disk Drive.
- Use Network Drive Control to make Windows automatically map network drives by network name when you log in
- Visual Subst is a free tool that lets you easily create Virtual Drives for your Folders & map Cloud Storage as Virtual Drives.
Also see:
- How to map OneDrive as Network Drive
- Mapping OneDrive for Business as a Network Drive
- Access FTP Server using Windows Command Prompt
- How to access FTP Server using Notepad++.
If you want, you can also download and use one of these free FTP Clients for your Windows PC. How to set up and use SIP Server on Windows may also interest some of you.