Windows的远程桌面连接(Remote Desktop Connection)( RDC ) 功能允许您远程查看和控制远程Windows桌面。在本地和远程 PC 之间共享资源可能很棘手,但可以使用RDC或其他远程桌面工具(如TightVNC )通过远程桌面会话共享本地文件和文件夹。
如果您使用RDC并希望在连接时访问 PC 上的文件和文件夹,则需要配置RDC设置。您可以在每次连接时进行设置,或者创建一个远程桌面协议(Remote Desktop Protocol)( RDP ) 快捷方式文件来保存您的设置。
通过远程桌面连接访问本地文件和文件夹(Accessing Local Files & Folders Over a Remote Desktop Connection)
远程桌面连接(Remote Desktop Connection)工具使用 Microsoft 的远程桌面协议(Remote Desktop Protocol)来创建与Windows PC(Windows PCs)和服务器的远程桌面会话。它包含在所有版本的Windows 10和Windows Server中。
Microsoft还提供支持 RDP 的软件,让您可以在 Mac以及Android和 iOS等移动平台上连接到 Windows PC 。(connect to Windows PCs on Mac)如果您使用的是Mac,您可以在远程桌面应用程序的重定向选项卡中将您的(Redirection)Mac文件和文件夹共享到Windows 。
在Windows上,内置的远程桌面连接(Remote Desktop Connection)工具允许您在连接之前配置文件和文件夹共享设置。
- 首先,打开远程桌面连接(Remote Desktop Connection)工具。您可以在Windows 开始(Windows Start)菜单的Windows 附件(Windows Accessories)文件夹下找到它,或者单击Win + R打开Windows 运行(Windows Run)对话框,然后键入mstsc并单击确定(OK)将其打开。
远程桌面连接(Remote Desktop Connection)工具在首次启动时非常基础。通常,您将插入远程 PC 的 IP 地址并单击连接(connect),但如果您想访问本地文件和文件夹,则需要在连接之前进一步配置。
- 在远程桌面连接(Remote Desktop Connection)窗口中,单击显示选项(Show Options)。
- 这将显示RDC的配置选项。单击(Click)本地资源(Local Resources )选项卡以访问远程桌面会话的共享设置。单击(Click) 底部的更多,在(More)本地设备和资源(Local devices and resources)部分下。
- 在本地设备和资源(Local devices and resources)框中,您可以将RDC设置为与远程 PC 共享某些设备。要共享您的本地文件和文件夹,请单击驱动器(Drives)旁边的+ arrow以展开该部分。
- 在“驱动器(Drives)”部分,您可以共享可用的Windows驱动器、任何连接的光驱(如 CD 或DVD驱动器)以及您可能决定稍后连接的闪存驱动器等便携式存储设备。单击(Click)任何复选框以与您的远程 PC 共享该存储,然后单击OK。
- 设置好驱动器共享设置后,返回“常规”选项卡并在“(General)登录设置”(Log-on Settings)部分下的“计算机(Computer)”框中键入您的远程 PC 或服务器 IP 地址。单击连接(Connect)以建立连接。
- 连接到远程桌面后,打开Windows 文件资源管理器(Windows File Explorer)。您可以通过右键单击开始(Start)菜单按钮并单击文件资源管理器来执行此操作。(File Explorer.)在文件资源管理器中,您应该会在(File Explorer)重定向的驱动器和文件夹(Redirected drives and folders)部分下看到您的共享驱动器。
这些设置可能仅在您连接到远程桌面期间持续。要保存这些设置,您需要使用 RDP 设置文件将连接保存为快捷方式。
使用 RDP 快捷方式文件保存 RDC 设置(Saving RDC Settings With An RDP Shortcut File)
远程桌面协议(Remote Desktop Protocol)设置文件旨在与其他允许RDP连接的软件互换。
- 如果要保存连接设置以便于访问或在其他设备上使用它,请单击远程桌面连接(Remote Desktop Connection)工具中的显示选项。(Show Options)
- 检查(Check)所有连接设置是否正确,然后在“常规”选项卡的“(General)连接设置(Connection settings)”部分下,单击“另存为”。 (Save As. )
- 在出现的保存文件框中,为您的连接文件取一个合适的名称,然后单击保存。(Save.)
保存RDP(RDP)文件后,您以后可以使用它直接连接到远程桌面。双击文件将其打开将启动RDC工具并自动连接应用的预定设置。
您还可以通过单击“连接设置(Connection settings)”部分下的“打开”从(Open)远程桌面连接工具中访问该文件。(Remote Desktop Connection)
如果您在任何时候希望更改这些设置,请按照上述说明覆盖已保存的RDP文件。
通过 VNC 共享文件和文件夹(Sharing Files & Folders Over VNC)
虽然Windows附带RDC工具,但您可以使用其他第三方远程桌面连接软件连接到Windows和其他操作系统。VNC是RDP的更流行的替代协议之一,您可以使用各种连接客户端。
最流行的VNC服务器-客户端软件组合之一是RealVNC,但这仅支持专业或企业订阅的文件传输。对于Windows(Windows)用户来说,一个不错的免费替代方案是TightVNC,它确实允许文件传输。
您需要在远程桌面上安装VNC服务器才能执行此操作。安装TightVNC通常会同时安装服务器和查看器组件,除非您在安装过程中对此进行自定义。
- 如果设置了远程VNC服务器,请在本地 PC 上下载并安装TightVNC 。安装后,打开TightVNC 查看器并通过在(TightVNC Viewer)远程主机(Remote Host)框中输入您的 IP 地址连接到远程桌面,然后单击连接(Connect)。
- 连接后,单击 TightVNC 菜单栏中的传输文件(Transfer files)图标。
- 在TightVNC 文件传输(TightVNC File Transfer)窗口中,选择要从 A 移动到 B 的文件和文件夹(从本地 PC 到远程 PC,反之亦然)。单击>>或<< 按钮(buttons)开始传输。单击“是”(Yes)以确认您希望开始传输。
一旦您同意开始传输,您选择的文件和文件夹将开始复制。如果要取消传输,请单击窗口底部的取消按钮。(Cancel)
如果您更愿意使用其他客户端,则可以使用WinSCP等文件传输软件在本地和远程(WinSCP)Windows PC(Windows PCs)之间移动文件。
Accessing Local Files and Folders on Remote Desktop Session
The Remotе Desktop Cоnnectіon (RDC) feature of Windows allows you to remotely view and control remote Windows desktops. Sharing resources between your local and remote PC can be tricky, but it is possible to ѕhare your local files and folders over a remote desktop session using RDC or other remote desktop tools like TightVNC.
If you’re using RDC and want to access the files and folders on your PC when you’re connected, you’ll need to configure your RDC setup. You can set this every time you connect or, alternatively, create a Remote Desktop Protocol (RDP) shortcut file to save your settings.
Accessing Local Files & Folders Over a Remote Desktop Connection
The Remote Desktop Connection tool uses Microsoft’s Remote Desktop Protocol to create a remote desktop session to Windows PCs and servers. It’s included with all editions of Windows 10 and Windows Server.
Microsoft also offers RDP-capable software to allow you to connect to Windows PCs on Mac, as well as on mobile platforms like Android and iOS. If you’re on a Mac, you can share your Mac files and folders to Windows in the Redirection tab of the Remote Desktop app.
On Windows, the built-in Remote Desktop Connection tool allows you to configure your file and folder sharing settings before you connect.
- To start, open the Remote Desktop Connection tool. You can find this in your Windows Start menu under the Windows Accessories folder, or by clicking Win + R to open the Windows Run dialog box, then typing mstsc and clicking OK to open it.
The Remote Desktop Connection tool, when first launched, is pretty basic. Normally, you would insert the IP address for your remote PC and click connect, but you’ll need to configure things further before you connect if you want to access your local files and folders.
- In the Remote Desktop Connection window, click Show Options.
- This will display the configuration options for RDC. Click the Local Resources tab to access the sharing settings for your remote desktop session. Click More at the bottom, under the Local devices and resources section.
- In the Local devices and resources box, you can set RDC to share certain devices with your remote PC. To share your local files and folders, click the + arrow next to Drives to expand that section.
- In the Drives section, you can share your available Windows drives, any attached optical drives like a CD or DVD drive, as well as portable storage like flash drives that you might decide to connect later. Click any of the checkboxes to share that storage with your remote PC, then click OK.
- With your drive sharing settings in place, return to the General tab and type your remote PC or server IP address in the Computer box under the Log-on Settings section. Click Connect to make the connection.
- Once connected to your remote desktop, open Windows File Explorer. You can do this by right-clicking your Start menu button and clicking File Explorer. In File Explorer, you should see your shared drives listed under the Redirected drives and folders section.
These settings may only last for the duration of your connection to your remote desktop. To save these settings, you’ll need to save your connection as a shortcut using an RDP settings file.
Saving RDC Settings With An RDP Shortcut File
Remote Desktop Protocol settings files are designed to be interchangeable with other software that allows RDP connections.
- If you want to save your connection settings for easier access or to use it on another device, click Show Options in the Remote Desktop Connection tool.
- Check all of your connection settings are correct, then under the Connection settings section of the General tab, click Save As.
- In the save file box that appears, give your connection file a suitable name, then click Save.
Once your RDP file is saved, you can then use it to directly connect to your remote desktop in future. Double-clicking on the file to open it will launch the RDC tool and automatically connect with your predetermined settings applied.
You can also access the file from within the Remote Desktop Connection tool by clicking Open under the Connection settings section.
If, at any point, you wish to change these settings, then follow the instructions above to overwrite the saved RDP file.
Sharing Files & Folders Over VNC
While Windows comes with the RDC tool, you can use other, third-party remote desktop connection software to connect to Windows and other operating systems. VNC is one of the more popular alternative protocols to RDP, with various connection clients you can use.
One of the most popular VNC server-client software combinations is RealVNC, but this only supports file transfers with a professional or enterprise subscription. A good, free alternative for Windows users is TightVNC, which does allow for file transfers.
You’ll need a VNC server installed on your remote desktop to be able to do this. Installing TightVNC generally installs both the server and the viewer components, unless you customize this during the setup process.
- If your remote VNC server is set up, download and install TightVNC on your local PC. Once installed, open the TightVNC Viewer and connect to your remote desktop by typing your IP address into the Remote Host box, then clicking Connect.
- Once connected, click the Transfer files icon in your TightVNC menu bar.
- In the TightVNC File Transfer window, select the files and folders you want to move from A to B (from your local PC to your remote PC, or vice versa). Click the >> or << buttons to begin the transfer. Click Yes to confirm that you want the transfer to begin.
Once you agree to begin the transfer, the files and folders you’ve selected will begin copying across. If you want to cancel the transfer, click the Cancel button at the bottom of the window.
If you’d rather use another client, you can use file transfer software like WinSCP to move files between your local and remote Windows PCs instead.