A method and system for convenient transmission of remote files by dragging
By utilizing drag-and-drop operations to parse object types and determine file manager locations during remote file transfers, and by unifying clipboard redirection, USB redirection, and virtual file system mapping, the complexity of remote file transfer operations is solved, enabling convenient and efficient file sharing.
Patent Information
- Application Number
- CN202511159884.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-19
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2045-08-19
AI Technical Summary
Existing remote desktop file transfer technologies require users to switch between different interfaces to select the transfer method, which is complex and lacks flexibility.
The drag-and-drop operation parses the type of the dragged object on the local device, and determines the location of the file manager in the screen snapshot on the remote device based on the end position of the drag. It then determines the target enable zone and triggers the corresponding file sharing method, including clipboard redirection, USB redirection, and virtual file system mapping, thus unifying and integrating multiple transmission methods.
It simplifies the operation process, enhances user flexibility and ease of transmission, reduces the complexity of technical implementation and the difficulty of recognition, and adapts to the differences between different operating systems and file managers.
Smart Images

Figure CN120780679B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of cloud desktop, and particularly relates to a method and system for realizing convenient remote file transmission through dragging. BACKGROUND
[0002] With the rapid development of cloud computing technology, more and more desktop environments and application programs are migrated to the cloud for deployment. A local device (such as a personal computer, a thin terminal or a zero terminal) only needs to reserve basic resources to connect and use a cloud desktop through a remote access protocol, and the remote desktop has become a core way for users to efficiently work and share resources.
[0003] At present, remote desktop file transmission mainly relies on the following technical solutions:
[0004] Firstly, clipboard sharing technology. The technology synchronizes the content of the clipboard between the local device and the remote device through the user operation interface related to the clipboard.
[0005] Secondly, disk mapping technology. Some remote desktop software with complete functions allows users to map the disk drive (such as C disk and D disk) of the local device to the file system of the remote device, but needs to provide a user operation interface corresponding to the disk drive selection for users to select the disk to be mapped.
[0006] Thirdly, U disk sharing technology of usb port redirection. The technology physically directs the U disk connected to the local device to the usb bus of the remote device, so that the remote device can recognize and use the U disk, but the technology also needs to provide a user operation interface corresponding to the usb port redirection to assist users to complete the file sharing in this way.
[0007] In summary, the various remote desktop file transmission technologies in the related art need to rely on independent user operation interfaces, and users need to switch between different interfaces to select the transmission mode, which is complex in operation process and low in selection flexibility. SUMMARY
[0008] The embodiments of the present disclosure provide a method and system for realizing convenient remote file transmission through dragging, which can solve the problem of complex operation process and low selection flexibility when users select a file transmission mode. The technical solution is as follows:
[0009] According to a first aspect of the embodiments of the present disclosure, a method for realizing convenient remote file transmission through dragging is provided, and the method comprises the following steps:
[0010] After detecting the dragging behavior on the local device, the type of the dragging object is analyzed, and the type of the dragging object includes a file, a folder and a disk icon.
[0011] At the end of the dragging behavior, it is determined whether the end position of the dragging behavior falls within the picture of the remote device displayed on the local device;
[0012] If the end position falls within the picture of the remote device, a screenshot of the remote device is captured;
[0013] It is determined whether a file manager exists in the screenshot, and if so, it is determined that the end position falls in the file manager;
[0014] According to the file sharing enabled area corresponding to different positions in the file manager, a target enabled area corresponding to the end position is determined; the file sharing enabled area includes a clipboard redirection enabled area, a USB redirection enabled area and a virtual file system enabled area, the clipboard redirection enabled area corresponds to a file sharing mode based on a clipboard or a file sharing mode based on a virtual file system function, the USB redirection enabled area corresponds to a file sharing mode based on a USB port redirection function, and the virtual file system enabled area corresponds to a file sharing mode based on a virtual file system function;
[0015] According to the type of the dragging object and the target enabled area, a file sharing mode corresponding to the target enabled area is triggered.
[0016] The present disclosure integrates multiple scattered operation modes such as the current clipboard sharing, USB port redirection and virtual file system mapping through the unified entrance of dragging, and unifies the above three functions, based on which the user does not need to manually select or enable a specific redirection mode on the UI interface, thereby greatly simplifying the operation steps and improving the operation flexibility.
[0017] In one embodiment, the determination of whether the file manager exists in the screenshot includes:
[0018] It is identified whether the screenshot contains a file manager feature word;
[0019] If so, it is determined that the file manager exists in the screenshot.
[0020] The existence of the file manager is determined by identifying the file manager feature word, which reduces the complexity of the technical implementation, guarantees the accuracy of the identification, provides a reliable premise for the subsequent determination of the sharing area, and improves the efficiency of the process.
[0021] In one embodiment, the determination of the target enabled area corresponding to the end position includes:
[0022] The coordinates of the end position are obtained;
[0023] The coordinates of the end position are compared with the area coordinates corresponding to each file sharing enabled area;
[0024] The ending position of the coordinate falls into the file sharing enabled area as the target enabled area.
[0025] The target enabled area is determined through coordinate comparison, ensuring the accuracy of target area identification.
[0026] In one embodiment, the file sharing mode corresponding to the target enabled area is triggered according to the type of the dragged object and the target enabled area, including:
[0027] When the type of the dragged object is a file and the target enabled area is a clipboard redirection enabled area, the file is copied and pasted under the clipboard redirection enabled area.
[0028] For the matching scenario of the file and the clipboard redirection enabled area, the copy and paste mode is directly used, which meets the intuitive expectation of the user for single file transmission, is simple and efficient, does not require additional interaction, reduces the user waiting time, and improves the convenience of small file transmission.
[0029] In one embodiment, the file sharing mode corresponding to the target enabled area is triggered according to the type of the dragged object and the target enabled area, including:
[0030] When the type of the dragged object is a folder and the target enabled area is a clipboard redirection enabled area, a pop-up box is output, and the pop-up box is used to prompt the user to select a file sharing mode based on a clipboard or a file sharing mode based on a virtual file system function;
[0031] When it is detected that the file sharing mode based on the clipboard is selected, the folder is copied and pasted into the clipboard redirection enabled area;
[0032] When it is detected that the file sharing mode based on the virtual file system function is selected, the folder is mapped to the clipboard redirection enabled area.
[0033] Two optional modes (clipboard copy / virtual directory mapping) are provided for folder transmission, taking into account the quick copy requirement of small folders and the efficient access requirement of large folders. By prompting the user to select through a pop-up box, the operation flexibility is ensured, and the transmission efficiency problem caused by the large size of the folder is avoided, optimizing the user's personalized selection experience.
[0034] In one embodiment, the file sharing mode corresponding to the target enabled area is triggered according to the type of the dragged object and the target enabled area, including:
[0035] When the type of the dragged object is a disk icon and the target enabled area is a virtual file system enabled area, the disk is mapped to the virtual file system enabled area of the remote device.
[0036] The disk icon is mapped to the virtual file system enabling area, without copying a large amount of data in the disk, saving transmission time and storage space, and realizing real-time access of the remote device to the local disk content, suitable for a scenario of sharing the entire storage device content, and improving the feasibility of large-capacity data sharing.
[0037] In one embodiment, the method further comprises:
[0038] When the type of the dragging object is a disk icon and the target enabling area is the USB redirection enabling area, it is detected whether the disk corresponding to the disk icon is a U disk.
[0039] If not, prompt information that the current dragging behavior is not supported is output.
[0040] If yes, the U disk is redirected to the USB redirection enabling area of the remote device in a U disk use port redirection mode.
[0041] For the matching of the disk icon and the USB redirection enabling area, it is first judged whether it is a U disk, and only the redirection of the removable USB device is supported, which not only meets the physical characteristics of the USB redirection technology (depending on the USB port), but also avoids invalid operations through prompt information, ensuring the rationality of the function and the definiteness of the user operation.
[0042] In one embodiment, the method further comprises:
[0043] When the type of the dragging object does not match the target enabling area, prompt information that the current dragging behavior is not supported is output, wherein the file and the folder match the clipboard redirection enabling area; the disk and the folder match the virtual file system enabling area; and the U disk matches the USB redirection enabling area when the disk corresponding to the disk icon is a U disk or a local disk.
[0044] When the type of the dragging object does not match the target enabling area, the prompt is output, explicitly informing the user of the reason why the operation is not feasible, avoiding the situation of system non-response or error execution, reducing the user's confusion, and at the same time, through the preset matching rule, the boundary of the dragging operation is standardized, improving the ease of use and fault tolerance of the method.
[0045] According to a second aspect of the embodiments of the present disclosure, a system for realizing convenient remote file transmission through dragging is provided, and the system comprises:
[0046] The analysis module is configured to analyze the type of the dragging object after detecting the dragging behavior on the local device, wherein the type of the dragging object comprises a file, a folder, and a disk icon.
[0047] The first judging module is configured to judge whether the ending position of the dragging behavior falls into the picture of the remote device displayed on the local device when the dragging behavior ends.
[0048] The capturing module is configured to capture a screenshot of the remote device if the ending position falls into the picture of the remote device.
[0049] The second judging module is configured to judge whether there is a file manager in the screenshot, and determine the position of the ending position in the file manager if there is.
[0050] The determining module is configured to determine the target enabling area corresponding to the ending position according to the file sharing enabling areas corresponding to different positions in the file manager, wherein the file sharing enabling areas include a clipboard redirection enabling area, a USB redirection enabling area and a virtual file system enabling area, the clipboard redirection enabling area corresponds to a file sharing mode based on a clipboard or a file sharing mode based on a virtual file system function, the USB redirection enabling area corresponds to a file sharing mode based on a USB port redirection function, and the virtual file system enabling area corresponds to a file sharing mode based on a virtual file system function.
[0051] The triggering module is configured to trigger the file sharing mode corresponding to the target enabling area according to the type of the dragging object and the target enabling area.
[0052] In one embodiment, in terms of judging whether there is a file manager in the screenshot, the second judging module is specifically configured to:
[0053] identify whether the screenshot contains a file manager characteristic word;
[0054] if the screenshot contains the file manager characteristic word, determine that there is a file manager in the screenshot.
[0055] In one embodiment, in terms of determining the target enabling area corresponding to the ending position, the determining module is specifically configured to:
[0056] obtain the coordinates of the ending position;
[0057] compare the coordinates of the ending position with the area coordinates corresponding to each file sharing enabling area;
[0058] the file sharing enabling area into which the coordinates of the ending position fall is the target enabling area.
[0059] In one embodiment, in terms of triggering the file sharing mode corresponding to the target enabling area according to the type of the dragging object and the target enabling area, the triggering module is specifically configured to:
[0060] when the type of the dragging object is a file and the target enabling area is the clipboard redirection enabling area, copy and paste the file under the clipboard redirection enabling area.
[0061] In one embodiment, the triggering module is specifically configured to:
[0062] when the type of the dragged object is a folder and the target enabled area is the clipboard redirection enabled area, output a pop-up box, the pop-up box being configured to prompt a user to select a clipboard-based file sharing mode or a virtual file system function-based file sharing mode;
[0063] when it is detected that the clipboard-based file sharing mode is selected, copy and paste the folder into the clipboard redirection enabled area;
[0064] when it is detected that the virtual file system function-based file sharing mode is selected, map the folder into the clipboard redirection enabled area.
[0065] In one embodiment, the triggering module is specifically configured to:
[0066] when the type of the dragged object is a disk icon and the target enabled area is the virtual file system enabled area, map the disk into the virtual file system enabled area of the remote device.
[0067] In one embodiment, the triggering module is specifically configured to:
[0068] when the type of the dragged object is a disk icon and the target enabled area is the usb redirection enabled area, detect whether the disk corresponding to the disk icon is a U disk;
[0069] if not, output prompt information that the current dragging behavior is not supported;
[0070] if yes, redirect the U disk to the usb redirection enabled area of the remote device using a port redirection mode.
[0071] In one embodiment, the system further comprises an output module,
[0072] the output module is configured to, when the type of the dragged object does not match the target enabled area, output prompt information that the current dragging behavior is not supported, wherein the file and the folder match the clipboard redirection enabled area; the disk and the folder match the virtual file system enabled area; the U disk or the local disk corresponding to the disk icon matches the usb redirection enabled area.
[0073] According to a third aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, and the storage medium stores at least one computer instruction. The instruction is loaded and executed by a processor to implement the steps performed in the method for realizing convenient remote file transmission by dragging as described in the first aspect and any one of the embodiments of the first aspect.
[0074] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0075] The accompanying drawings, which are incorporated into the specification and constitute part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.
[0076] Figure 1 is an architecture diagram of desktop sharing in a related technology provided by the embodiments of the present disclosure;
[0077] Figure 2 is an interface diagram of a remote desktop software of Windows RDP provided by the embodiments of the present disclosure;
[0078] Figure 3 is a flow of a method for realizing convenient remote file transmission by dragging provided by the embodiments of the present disclosure Figure 1 ;
[0079] Figure 4 is a schematic diagram of different file sharing enabling areas in a file manager interface provided by the embodiments of the present disclosure;
[0080] Figure 5 is a schematic diagram of usb redirection enabling area and virtual file system enabling area in a file manager interface provided by the embodiments of the present disclosure;
[0081] Figure 6 is a schematic diagram of clipboard redirection enabling area in a file manager interface provided by the embodiments of the present disclosure;
[0082] Figure 7 is a schematic diagram of dragging provided by the embodiments of the present disclosure;
[0083] Figure 8 is a flow of a method for realizing convenient remote file transmission by dragging provided by the embodiments of the present disclosure Figure 2 ;
[0084] Figure 9 is a flow of a method for realizing convenient remote file transmission by dragging provided by the embodiments of the present disclosure Figure 3 ;
[0085] Figure 10Fig. 1 is a schematic diagram of a logical layer structure of a system for realizing convenient remote file transmission by dragging according to an embodiment of the present disclosure;
[0086] Figure 11 Fig. 1 is a schematic diagram of a logical layer structure of a system for realizing convenient remote file transmission by dragging according to an embodiment of the present disclosure; DETAILED DESCRIPTION
[0087] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, unless otherwise indicated, like numbers refer to like elements throughout the several drawings. The following description of exemplary embodiments is not meant to represent all embodiments in accordance with the present disclosure. Rather, they are merely examples in accordance with some aspects of the present disclosure as detailed in the appended claims.
[0088] In the cloud computing era, more and more desktops and applications run in the cloud, and only a small amount of resources are reserved on the local PC, and the cloud desktop can be accessed remotely.
[0089] There are various ways of sharing and interconnecting cloud desktops. One of the most common forms of desktop sharing is as follows Figure 1 As shown, the remote device (denoted by S) is defined as an independent physical host or virtual machine, is the target device connected by the user through a remote access protocol, stores the desktop environment, application programs and related resources in the cloud, and is the target end of file transmission. The local device (denoted by R) refers to an ordinary physical machine, and can also be a thin terminal or a zero terminal, is the device directly operated by the user, establishes a connection with the remote device through a remote access protocol, and is the initiating end of file transmission. The desktop sharing form represented by the figure is the most commonly used basic architecture in the field of remote desktop, and the core scenario is that the user remotely accesses the desktop environment of the remote device (S) through the local device (R). Under this architecture, file transmission between the local and remote desktops becomes an indispensable function of the remote desktop, and is also the basic scenario for implementing various file transmission technologies (such as clipboard sharing, disk mapping, USB redirection, etc.).
[0090] Generally, the most common file sharing method is clipboard sharing, that is, the clipboard redirection function. It can realize copying of files on the R end, and then executing the files on the S end. Conversely, it can also realize copying of files on the S end, and then executing the files on the R end.
[0091] For a remote desktop software with complete functions, another option is provided to allow the user to map the local drive (C, D, E, etc. local disk) on the R end to the remote desktop on the S end, so that the disk on the R can be accessed in the remote desktop on the S end. As shown in the following figure Figure 2 As shown, the remote device (denoted by S) is defined as an independent physical host or virtual machine, is the target device connected by the user through a remote access protocol, stores the desktop environment, application programs and related resources in the cloud, and is the target end of file transmission. The local device (denoted by R) refers to an ordinary physical machine, and can also be a thin terminal or a zero terminal, is the device directly operated by the user, establishes a connection with the remote device through a remote access protocol, and is the initiating end of file transmission. The desktop sharing form represented by the figure is the most commonly used basic architecture in the field of remote desktop, and the core scenario is that the user remotely accesses the desktop environment of the remote device (S) through the local device (R). Under this architecture, file transmission between the local and remote desktops becomes an indispensable function of the remote desktop, and is also the basic scenario for implementing various file transmission technologies (such as clipboard sharing, disk mapping, USB redirection, etc.). Figure 2The disk mapping function provided by the remote desktop software of Windows RDP (Remote Desktop Protocol) itself appears a dialog box as shown in Figure 2 after the remote desktop connection software on the R end is opened. The user needs to select the disk of the R end to be used in the S end in the dialog box (a virtual file system is created in the S end, which is the mapping (shadow) of the local disk of the R end in the S end, and the R end and the S end can both operate the disk).
[0092] However, the above operation mode and implementation scheme have the following limitations:
[0093] Firstly, the R end responsible for the remote desktop application program to the S end needs to provide a disk driver selection dialog box for the user to select the local disk to be mapped. In addition, if the disk of the S end is to be mapped to the R end, the corresponding selection interface also needs to be adapted for the user to use.
[0094] Secondly, for the clipboard sharing, the mainstream remote desktop application program basically only supports the copy and paste operations on both sides to complete the file sharing. It basically does not support the remote file dragging function to complete the file sharing, or the support for the dragging sharing is not good. Because it depends on the support of the operating system and the file manager for the clipboard in the dragging feature, different operating systems and file managers have different dragging interfaces, resulting in high application adaptation difficulty.
[0095] Thirdly, for the newly added U disk sharing mode of the usb port redirection (the U disk of the R end is physically redirected to the usb bus of the S end, and the usb bus of the S end can see a real U disk, while the U disk of the R end disappears), the corresponding user operable interface also needs to be added to assist the user to select the file sharing of this mode.
[0096] All the above, the user's operation complexity is relatively high, and the selection flexibility is low when multiple sharing modes coexist.
[0097] The present disclosure mainly aims at the above limitations. By judging the different positions of the dragged file to the file manager, the clipboard redirection, the usb redirection and the disk mapping (the disk mapping can also be called the virtual file system function) functions are respectively used to complete the file transmission sharing, so as to effectively solve the above use limitation problem.
[0098] The technical scheme of the present disclosure is described in detail below.
[0099] An embodiment of the present disclosure provides a method for realizing convenient transmission of remote files through dragging, as shown in Figure 3 The method for realizing convenient transmission of remote files through dragging comprises the following steps:
[0100] 101、In detecting the drag behavior on the local device, the type of the dragged object is analyzed, including files, folders, disk icons.
[0101] When the user performs a drag operation on the local device, the system first identifies which type the dragged object belongs to:
[0102] File: single file such as document, picture, installation package, etc.
[0103] Folder: a directory containing multiple files or subfolders.
[0104] Disk icon: the icon of a storage device such as local hard disk (C disk, D disk), external U disk, etc.
[0105] In an embodiment, the local device can perceive the dragged object on the device in real time by registering the drag event, and accurately determine the object type (file, folder or disk icon) by analyzing the path information of the dragged file. Specifically:
[0106] First, the local device will "listen" to the drag-related system events (such as signals at the beginning, movement, and end of the drag) on the device. When the user initiates a drag operation on the local device, and the dragged object enters a specific interaction area, the R side will obtain the original path of the object in the local device (similar to "identity").
[0107] Then, the type of the dragged object is determined by the path characteristics:
[0108] If the path points to a specific file name (such as "D:\Documents\Report.pdf"; "C:\Pictures\Scenery.jpg"), and the path ends with a file format suffix (.pdf,.jpg, etc.), it is determined to be a file.
[0109] If the path points to a directory name without a suffix (such as "D:\Work Materials" "C:\Download Folder"), and the path level contains index information of multiple subfiles / subdirectories, it is determined to be a folder.
[0110] If the path is in the form of a disk root directory (such as "C:\"; "D:\"; "U disk (E):\") and is directly associated with the partition information of the storage device (such as hard disk partition, external U disk mount point), it is determined to be a disk icon.
[0111] 102、At the end of the drag behavior, it is determined whether the end position of the drag behavior falls within the picture of the remote device displayed on the local device.
[0112] When the user releases the mouse to complete the drag, the system checks whether the "end point" falls in the "remote device picture" displayed on the local device screen (for example, a remote desktop window, a virtual machine interface, etc., which are the visual areas for local and remote interaction).
[0113] If the end position is outside the remote picture (such as the local desktop, the local folder window), it is determined as a "local operation", and the cross-device sharing logic is not triggered; if it falls within the remote picture, it is determined as a "cross-device sharing intention", and the next step is processed.
[0114] 103. If it falls within the picture of the remote device, a screen snapshot of the remote device is captured.
[0115] After confirming that the end of the drag is within the picture of the remote device, the system captures the current screen picture of the remote device (i.e., the desktop or application window state of the remote device) in real time.
[0116] 104. It is determined whether there is a file manager in the screen snapshot, and if there is, the position of the end position in the file manager is determined.
[0117] In the obtained screen snapshot of the remote device, the system determines whether the file manager is opened by using image recognition and text recognition technology.
[0118] If it is determined that there is a file manager, the specific area of the drag end position in the file manager interface (for example, the "network position" of the left navigation bar or the "download" folder of the right list) is further analyzed.
[0119] In one embodiment, determining whether there is a file manager in the screen snapshot includes: identifying whether the screen snapshot contains file manager characteristic text, and if it contains, it is determined that the screen snapshot contains a file manager.
[0120] The method of combining image processing technology and OCR text recognition technology can be used to identify whether the screen snapshot contains file manager characteristic text, and specifically:
[0121] Since the file manager always exists as an independent window, the "window" and "non-window area" in the screen snapshot can be separated to locate all rectangular areas that may be application windows, and exclude pure background or scattered icons as interference items.
[0122] In the located window, find the "typical look of file manager" by image processing techniques. For example, the file manager usually has a fixed layout: the left is the navigation bar (listing options such as "This PC" and "Folder"), and the right is the file list (displaying various file icons), and there are repeated iconic icons such as "Folder" and "Hard Disk" in it. Through these visual features, it is preliminarily judged whether this window is likely to be a file manager.
[0123] In the suspected window, extract the text content: for example, is there a "File Explorer" name in the window title bar at the top; is there a "Devices and Drives" "Network Locations" in the left navigation bar; is there a "Name" "Modified Date" column title in the right list. If the suspected window includes these file manager feature words, it is determined that the suspected window is the file manager.
[0124] After judging that there is a file manager in the screen snapshot, it is also necessary to judge which position of the file manager the drop point is in, in order to decide different "file sharing enable areas".
[0125] 105、According to the file sharing enable area corresponding to different positions in the file manager, the target enable area corresponding to the end position is determined; the file sharing enable area includes: a clipboard redirection enable area, a USB redirection enable area, and a virtual file system enable area, the clipboard redirection enable area corresponds to a file sharing mode based on the clipboard or a file sharing mode based on the virtual file system function, the USB redirection enable area corresponds to a file sharing mode based on the USB port redirection function, and the virtual file system enable area corresponds to a file sharing mode based on the virtual file system function.
[0126] The present disclosure introduces the concept of "file sharing enable area", and defines different positions of the file manager as different "file sharing enable areas":
[0127] In this paper, the file manager interface is divided into three different "file sharing enable areas". As shown in Figure 4 , they are "clipboard redirection enable area", "USB redirection enable area", and "virtual file system enable area".
[0128] Here, the file manager interface of Windows 10 operating system is taken as an example, as shown in Figure 5 and Figure 6 .
[0129] The area between "Devices and Drives" and "Network Locations" in the file manager interface is defined as "USB redirection enable area".
[0130] The area below "Network Locations" in the file manager interface is defined as "virtual file system enable area".
[0131] After the file manager enters a certain directory, the area is defined as a "clipboard redirection enabling area". As shown in Figure 6 .
[0132] It is worth noting that the various file sharing enabling areas of the present disclosure example are only an example, and other different positions can also be set in actual application.
[0133] Since different positions in the file manager correspond to different file sharing enabling areas, in one embodiment, a character recognition technology can be used to determine which "file sharing enabling area" the current drop point is in by judging keywords such as "folder", "device and drive", "network location", "name", "modified date", etc.
[0134] In another embodiment, determining the target enabling area corresponding to the end position includes the following sub-steps A1-A3:
[0135] A1, obtaining the coordinates of the end position.
[0136] When the user completes the file dragging operation (releases the mouse or stops touching), the system will capture the accurate position of this "end position" on the screen in real time and record it in the form of coordinates.
[0137] A2, comparing the coordinates of the end position with the area coordinates corresponding to each file sharing enabling area.
[0138] The system pre-stores the coordinate ranges of each "file sharing enabling area" on the screen, wherein each enabling area occupies a fixed rectangular area in the file manager interface, and the boundary of this area is recorded as "area coordinates".
[0139] The "end position coordinates" obtained in A1 are compared with these preset "area coordinate ranges" one by one to see if the end position coordinates fall within the area coordinate range of a certain area.
[0140] A3, the file sharing enabling area where the end position coordinates fall is the target enabling area.
[0141] After the comparison in A2, as long as the end position coordinates completely fall within the coordinate range of a certain enabling area, this enabling area is directly determined as the "target enabling area".
[0142] For example, when the user wants to perform a virtual file system function on the local disk D, the user only needs to drag the local disk D to the position corresponding to the virtual file system enabling area in the file manager at the S end, as shown in Figure 7The red arrow in the figure. When the user wants to perform the U disk port redirection function on the U disk H, he only needs to drag the U disk H to the usb redirection enabled area in the file manager of the S end to the corresponding position, and the file sharing mode corresponding to the target enabled area is triggered. Figure 7 The blue arrow in the figure.
[0143] 106、According to the type of the dragged object and the target enabled area, the file sharing mode corresponding to the target enabled area is triggered.
[0144] In the present disclosure, different target enabled areas correspond to fixed types of dragged objects:
[0145] The file and folder matched with the clipboard redirection enabled area;
[0146] The disk and folder matched with the virtual file system enabled area;
[0147] When the disk corresponding to the disk icon is a U disk or a local disk, the U disk matched with the usb redirection enabled area;
[0148] If the type of the dragged object does not match the target enabled area, a prompt information that the current dragging behavior is not supported is output.
[0149] That is, in the present disclosure, the local disk or U disk icon on the R end is dragged to the "virtual file system enabled area" of the file manager on the S end, and the virtual file system function is triggered.
[0150] The U disk icon on the R end is dragged to the "usb redirection enabled area" of the file manager on the S end, and the U disk port redirection function is triggered.
[0151] The local file on the R end is dragged to the "clipboard redirection enabled area" of the file manager on the S end, and the file copying function is triggered.
[0152] The local folder on the R end is dragged to the "clipboard redirection enabled area" of the file manager on the S end, and the folder copying or mapping function is triggered.
[0153] In one embodiment, when the type of the dragged object is a file and the target enabled area is the clipboard redirection enabled area, the file is copied and pasted to the clipboard redirection enabled area.
[0154] When the user drags a specific file (such as a document, a picture, etc.) to the "clipboard redirection enabled area" (this area is essentially a function area for cross-device / cross-environment sharing through "clipboard", such as the clipboard associated area for transferring content in the remote desktop), a "copy and paste" operation is directly performed at this time, and the content or path of the file is transmitted to the target position (such as the clipboard associated directory of the remote device) corresponding to the enabled area through the clipboard redirection technology.
[0155] The file is usually small in size and simple in structure, and is directly copied and pasted through the shear plate with high efficiency without additional operation.
[0156] In one embodiment, when the type of the dragged object is a folder and the target enabled area is a shear plate redirection enabled area, a pop-up box is output for prompting the user to select a shear plate-based file sharing mode or a virtual file system function-based file sharing mode;
[0157] When it is detected that the shear plate-based file sharing mode is selected, the folder is copied and pasted into the shear plate redirection enabled area;
[0158] When it is detected that the virtual file system function-based file sharing mode is selected, the folder is mapped into the shear plate redirection enabled area.
[0159] When the user drags a folder (containing multiple files or subfolders) and the target is still the "shear plate redirection enabled area", the system will pop up a prompt box for the user to select two sharing modes:
[0160] The shear plate-based file sharing mode: that is, the shear plate-based transmission mode, which is similar to the processing of a file, directly copies and pastes the content of the entire folder through the shear plate to the shear plate redirection enabled area (suitable for small folders, and the content will be actually copied).
[0161] The virtual file system function-based file sharing mode: that is, the virtual shared directory-based transmission mode, which does not actually copy the folder content, but establishes a "mapping relationship" in the shear plate redirection enabled area. The shear plate redirection enabled area will display a shortcut access entry of the folder, and the actual content still exists in the original position, and is accessed through a virtual path association (suitable for large folders, saving transmission time and space).
[0162] According to the user selection, the corresponding operation is performed: if the shear plate mode is selected, the folder is copied and pasted; if the virtual shared mode is selected, the folder is mapped.
[0163] The folder may contain a large amount of content, and direct copying may consume time and space, so providing a selection can meet the "fast transmission" and "efficient access" requirements.
[0164] In one embodiment, when the type of the dragged object is a disk icon and the target enabled area is a virtual file system enabled area, the disk is mapped into the virtual file system enabled area of the remote device.
[0165] The user drags a local disk icon (such as C disk, D disk, or external hard disk), and the target is the "virtual file system enabled area", which maps the disk to the virtual file system enabled area of the remote device.
[0166] "Mapping" means: instead of copying the file in the disk, create an "entry" in the virtual file system of the remote device, through which the remote device can access the content of the original disk (similar to "network mapping drive", see the real-time content of the original disk).
[0167] The disk usually stores a large amount of data, and direct copying is not realistic. The mapping method can allow the remote device to access conveniently while avoiding repeated storage.
[0168] In one embodiment, when the type of the dragged object is a disk icon and the target enabled area is a usb redirection enabled area, it is detected whether the disk corresponding to the disk icon is a U disk;
[0169] If not, output prompt information that does not support the current drag behavior;
[0170] If yes, the U disk is redirected to the usb redirection enabled area of the remote device by using the port redirection method.
[0171] The user drags the disk icon to the "usb redirection enabled area" (this area is used to "redirect" the local USB device to the remote device, so that the remote device can access it like using the local USB device).
[0172] First, it is judged whether the disk is a U disk (a removable USB storage device):
[0173] If it is not a U disk (such as a local hard disk, a fixed hard disk): pop up a prompt "not support the current drag behavior" (because USB redirection is mainly aimed at removable USB devices, local hard disks are usually not connected through USB ports, and cannot be redirected).
[0174] If it is a U disk, the USB port signal of the U disk is transmitted to the "USB redirection enabled area" of the remote device through the "port redirection" technology. At this time, the remote device will recognize the U disk as a "locally connected USB device", and can directly read and write the content in the U disk.
[0175] USB redirection relies on physical USB ports and only supports removable devices connected through USB (such as U disks). Local hard disks and other non-USB devices cannot be shared through this way, so it is necessary to judge the type first to avoid invalid operations.
[0176] It is worth noting that the present disclosure also supports the drag function of the S-end file to the R-end. At this time, the S-end performs the same operation as the R-end in the above-mentioned embodiments of the present disclosure. For details, see the description of the above-mentioned embodiments, which will not be repeated here.
[0177] The present disclosure combines the transmission and sharing of files by judging the dragging of files to different positions of the file manager between the local device and the remote device, respectively applying the clipboard redirection, USB redirection and virtual file system functions, and has the following technical effects:
[0178] (1) The present cutboard sharing, USB port redirection and virtual file system mapping are integrated by the unified entrance of dragging, and the above three functions are unified, without manual selection or activation of a specific redirection mode in the UI interface, which greatly simplifies the operation steps and improves flexibility.
[0179] (2) Some operating systems and file managers only support the clipboard dragging function, and the dragging interfaces are different, which makes it difficult to adapt to dragging. The present scheme is not dependent on or limited by the clipboard dragging function of the remote operating system and file manager, and independently decides the sharing form (such as clipboard transmission, USB redirection, virtual file system mapping, etc.) through image recognition and text processing technology, which significantly reduces the difficulty of adaptation.
[0180] (3) By unifying the operation path, not only the forward file sharing is simplified, but also the reverse file sharing (S end to R end) is significantly improved in convenience. The user can directly drag the S end file to the R end without additional selection steps, realizing efficient and simplified two-way operation.
[0181] The present disclosure provides a method for realizing convenient remote file transmission by dragging, as shown in Figure 8 The method for realizing convenient remote file transmission by dragging includes the following steps:
[0182] 2001, the user performs a dragging behavior on the R end.
[0183] The user selects a file, folder or disk icon on the local device (R end) with a mouse or touch operation and starts to drag, at which time the system starts to listen to the process and prepares to track the subsequent operation.
[0184] 2002, the user releases the hand.
[0185] The user completes the dragging action and releases the mouse / finger, and the position at the moment of releasing the hand determines the final target area of the dragging behavior.
[0186] 2003, judge whether the user's hand release point falls within the S end picture.
[0187] The system detects the coordinate of the hand-off position in real time, and confirms whether it is in the "remote device (S-side) picture" displayed on the local device screen (such as the remote desktop window, application interface, etc. of the S-side). This step is the core of distinguishing between "local operation" and "cross-device sharing intention": if it is outside the S-side picture, it means that the user is only moving the object locally; if it is within the picture, it may be to transmit content to the S-side.
[0188] 2004, if it is not within the S-side picture, the process ends.
[0189] If the hand-off point is outside the S-side picture, it is determined to be a normal local drag (such as organizing local files), and there is no need to trigger the cross-device sharing logic, and the process ends.
[0190] 2005, if it is within the S-side picture, take a screenshot of the S-side.
[0191] When it is confirmed that the hand-off point is within the S-side picture, the system immediately captures the current screen picture of the S-side for analyzing the interface state of the S-side (such as whether the file manager is opened).
[0192] 2006, in combination with image processing technology and OCR text recognition technology, determine whether the snapshot picture contains a file manager.
[0193] Through image processing (such as recognizing window borders, layout features) and OCR text recognition (such as detecting feature words such as "file manager" and "this computer"), analyze whether there is a file manager in the S-side snapshot.
[0194] 2007, if there is no file manager, the process ends.
[0195] If the S-side does not open the file manager (such as currently displaying a browser, a document, or other non-file management interface), it is not possible to complete the file receiving, and the process ends.
[0196] 2008, if there is a file manager, further determine whether the hand-off point falls within the file manager.
[0197] After confirming that there is a file manager on the S-side, it is further necessary to verify whether the hand-off point is within the window range of the file manager (rather than other interface areas of the S-side). For example, the S-side picture simultaneously displays a file manager and a browser, and only the hand-off point within the file manager window is valid.
[0198] 2009, if the hand-off point does not fall within the file manager, the process ends.
[0199] If the hand-off point is within the S-side picture but not within the file manager window (such as falling on the desktop or other applications of the S-side), it is determined to be an invalid sharing target, and the process ends.
[0200] 2010, if the release point falls into the file manager, identify the area coordinates of each "file sharing enabled area" in the diagram, and determine which file sharing enabled area the release point belongs to.
[0201] When the release point is in the file manager, the system locates the preset "file sharing enabled area" (such as the clipboard redirection area, USB redirection area, and virtual file system area) in the file manager through coordinate recognition technology, and determines which area the release point specifically belongs to.
[0202] 2011, the process ends.
[0203] After completing all the judgment steps, the system executes the corresponding file sharing logic (such as copying, mapping, and redirection) according to the result of 2010, and the drag judgment process terminates.
[0204] The embodiment of the present disclosure provides a method for realizing convenient remote file transmission through dragging, as shown in Figure 9 The method for realizing convenient remote file transmission through dragging includes the following steps:
[0205] The user performs a drag behavior.
[0206] If the user drags a file and the destination is the "clipboard redirection enabled area", the file is directly copied and pasted to the clipboard redirection enabled area, and the process ends.
[0207] Otherwise, the user is prompted that dragging is not supported, and the process ends.
[0208] If the user drags a folder and the destination is the "clipboard redirection enabled area", a pop-up box prompts the user to choose the clipboard redirection function or the virtual file system function. If the user chooses the clipboard redirection function, the folder is directly copied to the directory under the clipboard redirection enabled area. If the user chooses the virtual file system function, the folder is mapped to the clipboard redirection enabled area.
[0209] Otherwise, the user is prompted that dragging is not supported, and the process ends.
[0210] If the user drags a disk icon. If the destination is the "virtual file system enabled area", the disk is directly mapped to the "network location" under the S end. If the destination is the "usb redirection enabled area", it is necessary to determine whether the disk is a U disk. If it is a U disk, the U disk is redirected to the "devices and drives" under the S end using the port redirection method. If it is not a U disk but a local disk, the user is prompted that dragging is not supported, and the process ends.
[0211] Based on the above Figure 3The method for realizing convenient remote file transmission by dragging described in the corresponding embodiment can be used to execute the system embodiment of the present disclosure.
[0212] The present disclosure provides a system for realizing convenient remote file transmission by dragging, as shown in the following system embodiment. Figure 10 The system comprises:
[0213] The parsing module 31 is configured to parse the type of the dragged object after detecting the dragging behavior on the local device, wherein the type of the dragged object comprises a file, a folder, and a disk icon.
[0214] The first judging module 32 is configured to judge whether the end position of the dragging behavior falls within the picture of the remote device displayed on the local device when the dragging behavior ends.
[0215] The capturing module 33 is configured to capture a screenshot of the remote device if the end position falls within the picture of the remote device.
[0216] The second judging module 34 is configured to judge whether the screenshot contains a file manager, and determine the position of the end position in the file manager if the screenshot contains the file manager.
[0217] The determining module 35 is configured to determine the target enabling area corresponding to the end position according to the file sharing enabling area corresponding to different positions in the file manager, wherein the file sharing enabling area comprises a clipboard redirection enabling area, a USB redirection enabling area, and a virtual file system enabling area, the clipboard redirection enabling area corresponds to a file sharing mode based on a clipboard or a file sharing mode based on a virtual file system function, the USB redirection enabling area corresponds to a file sharing mode based on a USB port redirection function, and the virtual file system enabling area corresponds to a file sharing mode based on a virtual file system function.
[0218] The triggering module 36 is configured to trigger the file sharing mode corresponding to the target enabling area according to the type of the dragged object and the target enabling area.
[0219] In one embodiment, in terms of judging whether the screenshot contains a file manager, the second judging module 34 is specifically configured to:
[0220] identify whether the screenshot contains a file manager characteristic word;
[0221] If the screenshot contains the file manager characteristic word, it is determined that the screenshot contains the file manager.
[0222] In one embodiment, in terms of determining the target enabling area corresponding to the end position, the determining module 35 is specifically configured to:
[0223] obtain the coordinates of the end position;
[0224] The coordinate of the end position is compared with the region coordinate corresponding to each file sharing enabled area;
[0225] The file sharing enabled area in which the coordinate of the end position falls is the target enabled area.
[0226] In one embodiment, in terms of triggering the file sharing mode corresponding to the target enabled area according to the type of the dragged object and the target enabled area, the triggering module 36 is specifically configured to:
[0227] When the type of the dragged object is a file and the target enabled area is a clipboard redirection enabled area, the file is copied and pasted under the clipboard redirection enabled area.
[0228] In one embodiment, in terms of triggering the file sharing mode corresponding to the target enabled area according to the type of the dragged object and the target enabled area, the triggering module 36 is specifically configured to:
[0229] When the type of the dragged object is a folder and the target enabled area is a clipboard redirection enabled area, a pop-up box is output, and the pop-up box is used to prompt the user to select a clipboard-based file sharing mode or a virtual file system function-based file sharing mode;
[0230] When it is detected that the clipboard-based file sharing mode is selected, the folder is copied and pasted into the clipboard redirection enabled area;
[0231] When it is detected that the virtual file system function-based file sharing mode is selected, the folder is mapped into the clipboard redirection enabled area.
[0232] In one embodiment, in terms of triggering the file sharing mode corresponding to the target enabled area according to the type of the dragged object and the target enabled area, the triggering module 36 is specifically configured to:
[0233] When the type of the dragged object is a disk icon and the target enabled area is a virtual file system enabled area, the disk is mapped into the virtual file system enabled area of the remote device.
[0234] In one embodiment, in terms of triggering the file sharing mode corresponding to the target enabled area according to the type of the dragged object and the target enabled area, the triggering module 36 is specifically configured to:
[0235] When the type of the dragged object is a disk icon and the target enabled area is a usb redirection enabled area, it is detected whether the disk corresponding to the disk icon is a U disk;
[0236] If not, prompt information that the current dragging behavior is not supported is output;
[0237] If yes, the U disk is redirected to the usb redirection enabled area of the remote device using a port redirection mode.
[0238] In one embodiment, the system further comprises an output module;
[0239] The output module is configured to output prompt information indicating that the current drag operation is not supported when the type of the dragged object does not match the target enabled area, wherein files and folders match the clipboard redirection enabled area; disks and folders match the virtual file system enabled area; and a U disk matches the USB redirection enabled area when the disk icon corresponds to a U disk or a local disk.
[0240] In an exemplary embodiment, a computer device, which can be a server or a terminal, is provided, and an internal structure diagram of the computer device can be as shown in FIG. 1. Figure 11 The computer device includes a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with external terminals through a network connection. The computer program is executed by the processor to implement a method for realizing remote file convenient transmission through dragging.
[0241] Those skilled in the art can understand that Figure 11 The structure shown in FIG. 1 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. Specifically, the computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0242] In an exemplary embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the steps in each of the method embodiments described above.
[0243] In an exemplary embodiment, a computer program product is provided, which includes a computer program. The computer program is executed by a processor to implement the steps in each of the method embodiments described above.
[0244] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiments. Any reference to memory, database or other medium used in the embodiments provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0245] The database involved in the embodiments provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a blockchain, etc., without being limited thereto. The processor involved in the embodiments provided by the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0246] Those skilled in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware or by a program instructing related hardware. The program can be stored in a computer readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0247] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the concepts disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims
1. A method for convenient remote file transfer via drag and drop, characterized in that, The method includes: After detecting drag-and-drop behavior on the local device, the type of the dragged object is parsed, including files, folders, and disk icons; When the dragging action ends, determine whether the ending position of the dragging action falls within the screen of the remote device displayed on the local device; If the image falls within the view of a remote device, capture a screenshot of the remote device's screen; Determine whether a file manager exists in the screenshot; if it does, determine the position of the ending position within the file manager. Based on the file sharing enable zones corresponding to different locations in the file manager, determine the target enable zone corresponding to the end location; the file sharing enable zones include: clipboard redirection enable zone, USB redirection enable zone, and virtual file system enable zone. The clipboard redirection enable zone corresponds to a file sharing method based on clipboard or a file sharing method based on virtual file system functionality. The USB redirection enable zone corresponds to a file sharing method based on USB flash drive port redirection functionality. The virtual file system enable zone corresponds to a file sharing method based on virtual file system functionality. Based on the type of the dragged object and the target enabled area, trigger the file sharing mode corresponding to the target enabled area; The method of triggering the file sharing mode corresponding to the target enabled area based on the type of the dragged object and the target enabled area includes: When the type of the dragged object is a file and the target enabled area is the clipboard redirection enabled area, the file will be copied and pasted into the clipboard redirection enabled area; Alternatively, when the dragged object is a folder and the target enabled area is the clipboard redirection enabled area, a pop-up window is displayed, prompting the user to choose between clipboard-based file sharing and virtual file system-based file sharing. If clipboard-based file sharing is selected, the folder is copied and pasted into the clipboard redirection enabled area; if virtual file system-based file sharing is selected, the folder is mapped into the clipboard redirection enabled area. Alternatively, when the type of the dragged object is a disk icon and the target enabled area is a virtual file system enabled area, the disk is mapped to the virtual file system enabled area of the remote device. Alternatively, when the type of the dragged object is a disk icon and the target enabled zone is a USB redirection enabled zone, check whether the disk corresponding to the disk icon is a USB flash drive; if not, output a prompt message that the current dragging behavior is not supported; if so, redirect the USB flash drive to the USB redirection enabled zone of the remote device using port redirection.
2. The method according to claim 1, characterized in that, The step of determining whether a file manager exists in the screenshot includes: Identify whether the screenshot contains text characteristic of a file manager; If it is included, then the file manager is determined to exist in the screenshot.
3. The method according to claim 1, characterized in that, Determining the target enable region corresponding to the end position includes: Get the coordinates of the end position; Compare the coordinates of the end position with the coordinates of the corresponding regions in the file sharing enable zones; The file-sharing enabled area into which the coordinates of the ending position fall is the target enabled area.
4. The method according to claim 1, characterized in that, The method further includes: When the type of the dragged object does not match the target enable zone, a prompt message indicating that the current dragging behavior is not supported is output. Among them, files and folders match the clipboard redirection enable zone; disks and folders match the virtual file system enable zone; when the disk icon corresponds to a USB flash drive or local disk, the USB flash drive matches the USB redirection enable zone.
5. A system for convenient remote file transfer via drag and drop, characterized in that, The system includes: The parsing module is used to parse the type of the dragged object after detecting dragging behavior on the local device. The type of the dragged object includes files, folders, and disk icons. The first judgment module is used to determine whether the end position of the dragging behavior falls within the screen of the remote device displayed on the local device when the dragging behavior ends. The capture module is used to capture a screenshot of the remote device if the image falls within the view of the remote device. The second judgment module is used to determine whether a file manager exists in the screenshot. If it exists, the position of the end position in the file manager is determined. The determination module is used to determine the target enable zone corresponding to the end position based on the file sharing enable zones corresponding to different positions in the file manager; the file sharing enable zones include: clipboard redirection enable zone, USB redirection enable zone, and virtual file system enable zone. The clipboard redirection enable zone corresponds to the file sharing method based on clipboard or the file sharing method based on virtual file system function. The USB redirection enable zone corresponds to the file sharing method based on USB flash drive port redirection function. The virtual file system enable zone corresponds to the file sharing method based on virtual file system function. The trigger module is used to trigger the file sharing mode corresponding to the target enable zone based on the type of the dragged object and the target enable zone; The triggering module is specifically used for: When the type of the dragged object is a file and the target enabled area is the clipboard redirection enabled area, the file will be copied and pasted into the clipboard redirection enabled area; Alternatively, when the dragged object is a folder and the target enabled area is the clipboard redirection enabled area, a pop-up window is displayed, prompting the user to choose between clipboard-based file sharing and virtual file system-based file sharing. If clipboard-based file sharing is selected, the folder is copied and pasted into the clipboard redirection enabled area; if virtual file system-based file sharing is selected, the folder is mapped into the clipboard redirection enabled area. Alternatively, when the type of the dragged object is a disk icon and the target enabled area is a virtual file system enabled area, the disk is mapped to the virtual file system enabled area of the remote device. Alternatively, when the type of the dragged object is a disk icon and the target enabled zone is a USB redirection enabled zone, check whether the disk corresponding to the disk icon is a USB flash drive; if not, output a prompt message that the current dragging behavior is not supported; if so, redirect the USB flash drive to the USB redirection enabled zone of the remote device using port redirection.
6. A computer-readable storage medium, characterized in that, The storage medium stores at least one computer instruction, which is loaded and executed by a processor to perform the steps in the method for convenient remote file transfer by drag and drop as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Icon dragging method and system based on HTML5 virtual operation system
CN104216607A
File sending method and device, computer equipment and storage medium
CN109582187A