WO2011124101A1 - 搬移软件的方法及装置 - Google Patents

搬移软件的方法及装置 Download PDF

Info

Publication number
WO2011124101A1
WO2011124101A1 PCT/CN2011/071092 CN2011071092W WO2011124101A1 WO 2011124101 A1 WO2011124101 A1 WO 2011124101A1 CN 2011071092 W CN2011071092 W CN 2011071092W WO 2011124101 A1 WO2011124101 A1 WO 2011124101A1
Authority
WO
WIPO (PCT)
Prior art keywords
software
moved
information
moving
folder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2011/071092
Other languages
English (en)
French (fr)
Inventor
马化腾
郑全战
白宁
高小明
拓鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to AU2011238301A priority Critical patent/AU2011238301A1/en
Publication of WO2011124101A1 publication Critical patent/WO2011124101A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Definitions

  • the present invention relates to the field of computers, and in particular, to a method and apparatus for moving software.
  • the prior art provides a cloud software platform, which loads the driver at the time of use and establishes a virtual platform between the software and the operating system. , virtualize the software, which can reduce the disk partition space occupied by the software.
  • a method of moving software comprising:
  • Determining software information of the software to be moved where the software information includes at least original folder information corresponding to the software to be moved;
  • the method further includes:
  • the determining the software information of the software to be moved includes:
  • a software feature library containing software information is created, and software information of the software to be moved is detected and determined in the software feature library.
  • Determining, according to the software information of the software to be moved, whether the software to be moved meets the moving condition specifically includes: acquiring a filtering list that restricts software migration, if the software information of the software to be moved and the filtering in the filtering list If the conditions match, it is determined that the software to be moved does not satisfy the moving condition; otherwise, it is determined that the software to be moved satisfies the moving condition;
  • the filtering condition in the filtering list includes at least one of a software path, a software name, and a registry key value to be filtered.
  • the method further includes:
  • the moving information is recorded in the process of moving the software to be moved, and the software to be moved is managed according to the moving information.
  • the method further includes:
  • a prompt message for prompting the user is identified for the link file and the target folder.
  • an apparatus for moving software comprising:
  • a determining module configured to determine software information of the software to be moved, where the software information includes at least the original folder information corresponding to the software to be moved;
  • a determining module configured to determine, according to the software information of the software to be moved determined by the determining module, whether the software to be moved meets a moving condition
  • a moving module configured to: after the determining module determines that the software to be moved meets the moving condition, copy the file in the original folder corresponding to the original folder information to the moving target folder, and delete the original a folder, where a link file pointing to a path of the target folder is established at a location of the original folder, where the target folder is located on a different disk partition than the original folder.
  • the determining module is further configured to obtain an indication of moving the software, and determine the software to be moved according to the indication, before determining the software information of the software to be moved.
  • the determining module is configured to detect and determine software information of the software to be moved in a registry when determining software information of the software to be moved, or establish a software feature library including software information, where The software feature library detects and determines software information of the software to be moved.
  • the determining module is specifically configured to obtain a filtering list that restricts software migration, and if the software information of the software to be moved determined by the determining module matches the filtering condition in the filtering list, determining the software to be moved The moving condition is not satisfied, otherwise, it is determined that the software to be moved satisfies the moving condition.
  • the device further includes:
  • a record management module configured to: when the determining module determines that the software to be moved meets the moving condition, record the moving information in the process of moving the software to be moved, and perform the software to be moved according to the moving information management.
  • the device further includes:
  • an identifier module configured to identify, to the link file and the target folder, prompt information for prompting a user.
  • the data can be saved, and the link file pointing to the path of the target folder can be established in the location of the original folder after deleting the original folder.
  • the software can still be accessed before the move, so it does not affect the software performance, and since the solution does not need to establish a virtual platform between the software and the system, the operation efficiency can be improved, and since the solution does not need to be loaded, the load can be avoided.
  • the security risks brought by it are safe and efficient to increase the available space on the disk partition.
  • Embodiment 1 is a flowchart of a method for moving software provided by Embodiment 1 of the present invention
  • Embodiment 2 is a flowchart of a method for moving software provided by Embodiment 2 of the present invention
  • Embodiment 3 is a schematic structural diagram of an apparatus for moving software provided in Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of another apparatus for moving software provided in Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of another apparatus for moving software according to Embodiment 3 of the present invention. detailed description
  • this embodiment provides a method for moving software.
  • the method is as follows:
  • step 102 Determine, according to software information of the software to be moved, whether the software to be moved meets a moving condition, and if yes, execute step 103; otherwise, the process ends;
  • the file, the destination folder, is located on a different disk partition than the original folder.
  • the method provided in this embodiment can ensure that the software data is not lost by copying the file corresponding to the software to be moved to the moved target folder, and after the original folder is deleted, the location of the original folder is established.
  • the link file of the path can ensure that the software can still be accessed before the move, so the software performance is not affected, and since the solution does not need to establish a virtual platform between the software and the system, the operation efficiency can be improved, and the program does not need to be loaded.
  • the driver can avoid the security risk caused by loading the driver, and has the effect of safely and efficiently increasing the available space of the disk partition partition.
  • the present invention provides a method for moving software, which can be moved not only by moving the removable software on the system disk partition to other disk partitions, but also by the problem that the installation software causes the system disk partition to have less space available.
  • System disk partition space thereby increasing the available space of the system disk partition; and because it is necessary to determine whether the moving software meets the moving conditions before moving the software, it is also possible to satisfy the user to move any software without affecting the software performance. Demand.
  • the method flow is as follows:
  • the software information of the software to be moved may further include information such as a name, an icon, and the like corresponding to the software to be moved.
  • the original folder information corresponding to the software to be moved includes, but is not limited to, the original folder name, the path of the original folder, and the like. This embodiment does not limit the specific original folder information, and does not limit the specific software to be moved. In the application, it can be determined by the user. In order to ensure that more software can be moved, thereby facilitating the user to select the software to be moved, all the software installed in the computer can be detected in advance and displayed to the user in the form of a list for the user to select the software to be moved.
  • the user may be provided with an operation window for moving the software, and the user selects to determine the soft to be moved. Pieces.
  • the user selects the software to be moved it means that the instruction to move the software is given.
  • the software to be moved is determined according to the instruction, the software information for determining the software to be moved and the subsequent information can be triggered. Move steps.
  • the method includes the following two methods:
  • the installation path of the software to be moved can be detected through the registry, which is the root directory of the software to be moved and the corresponding original.
  • Software information such as folders.
  • this embodiment does not specifically limit the manner in which the software information in the library is obtained.
  • the software information contained in the software signature database can be obtained by detecting in the registry.
  • the information not detected in the registry it can also be used with the server detection, and at the same time, start the program menu, desktop program, etc. The way the area is tested.
  • the type of information that is detected in the registry and used in conjunction with the server detection it can still be detected, and the user can select and complete the filling of the information by setting advanced operation options. .
  • step 202 Determine, according to the software information of the software to be moved, whether the software to be moved meets the moving condition, and if yes, execute step 203, otherwise, the process ends;
  • the method when determining whether the software to be moved meets the moving condition according to the software information of the software to be moved, the method specifically includes: obtaining a filtering list that restricts software migration, and if the software information of the software to be moved matches the filtering condition in the filtering list, determining The software to be moved does not satisfy the moving condition; otherwise, it is determined that the software to be moved satisfies the moving condition.
  • the filter list for restricting the software migration can be obtained from the server.
  • the method for obtaining the filter list and the specific filter conditions in the filter list are not limited.
  • the filter condition may be at least one or more.
  • One of the software path, the software name and the registry key value, when determining whether the software to be moved satisfies the moving condition, the software information of the software to be moved satisfies one or more filtering conditions, and the software to be moved is determined The moving conditions are not met.
  • the specific format and content of the filter list are not limited.
  • the format and content of the obtained filter list may be represented by the following program:
  • Path indicates the path to be filtered and supports the definition of environment variables
  • KeyName indicates HKEY_LOCAL_MACHINE ⁇ SOFTWA E in the registry.
  • Di splayName indicates the name of the software, which supports fuzzy matching and thus corresponds to the original folder name of the software.
  • the software installed in the system directory %sy S t e m% S y S tem32 is the software to be moved.
  • the Path condition in the filter list that restricts software migration limits the path %5 8 ⁇ !111? 0 ⁇ %, it should be judged that the software to be moved does not satisfy the moving condition.
  • the moving software meets the moving condition, it can be used to filter some software that cannot be moved, and avoid the incomplete software moving, so as to ensure the completeness and completeness of the software moving, wherein the software
  • the completeness means that all the resources required for the normal operation of the software exist, and exist in the way that the software itself believes, that is, the software can find its own registry information, the library file that the operation depends on, the loading resource file required by itself, Data files that can be obtained, etc.
  • the target folder is located on a different disk partition than the original folder.
  • the target folder to be moved is not specifically limited.
  • the user may select, for example, the original folder corresponding to the software to be moved is in the C disk partition, and the user may select to set the target folder in the D disk partition.
  • E disk partition that is, choose to move the software to be moved to D disk partition or E disk partition.
  • the link file is created in the deleted original folder location, the original folder corresponding to the software still exists, and any operation of the original folder in the operating system is automatically weighted by the link file. Directed to the path where the target folder is located. That is to say, when the software is operated, any operation on the link file of the original folder position will have a corresponding influence on the target folder, so that the operations of the link file and the target folder can be synchronized.
  • the uninstaller will also delete the linked file in the original folder location, and will also cause the files in the target folder. It is emptied so no redundant files are left. And because the link file takes up almost zero space, Not only can the space of the disk partition be reduced, but also the software can be guaranteed to run normally.
  • the method provided in this embodiment further includes a preferred step of recording the movement information during the process of moving the software to be moved, and managing the software to be moved according to the movement information, and the specific content is as follows:
  • the software Because the software is moved, most of the files are operated by the software. In order to ensure that the performance of the software is not affected, in the process of software migration, it is necessary to ensure that any moving process can be rolled back, that is, restored to the state before the moving. Among them, there are two cases of retreat, one is in the process of moving, and the other is after the successful completion of the move. For the rollback during the moving process, if any moving process fails, the software to be moved needs to be restored to the state before the moving. Therefore, the recorded moving information should at least include the moving status code, which is used to identify each Whether the moving process is a successful state or a failed state. If it is a failed state, it is also necessary to record the reason information of the failure.
  • the moving status code which is used to identify each Whether the moving process is a successful state or a failed state. If it is a failed state, it is also necessary to record the reason information of the failure.
  • the other process of moving is continued.
  • the moved software can also be restored to the state before the move.
  • the specific information of the software transfer should be recorded, for example, the path before the move and the path after the move, so that the user can move.
  • Software management In this embodiment, the content of the recorded movement information is not specifically limited, and other information may be recorded in the actual application process.
  • the prompt message for prompting the user is identified for the link file and the target folder, and the process ends.
  • This step is a preferred step. Because the user manually modifies the link file or the target folder, the software may be unusable, and the two folders do not need to be synchronized, which causes inconvenience to the user. Therefore, it is necessary to prompt the user to manually modify the file.
  • the danger of linking files and target folders For the software that has been moved, it needs to be transparent to the user. To this end, you need to identify the link file and the target folder to remind the user that the file cannot be modified or deleted at will, thus ensuring the software. normal operation.
  • This embodiment does not limit the specific identification mode. In the actual application process, the method of adding an exclamation mark "! to the link file and the target folder flag may be adopted to prompt the user. Further, when the user moves the mouse to the linked file or the target folder, a prompt message such as "Please do not delete" may be displayed.
  • the method provided in this embodiment can ensure that the software data is not lost by copying the file corresponding to the software to be moved to the moved target folder, and after the original folder is deleted, the location of the original folder is established.
  • the link file of the path can ensure that the software can still be accessed before the move, so the software performance is not affected, and since the solution does not need to establish a virtual platform between the software and the system, the operation efficiency can be improved, and the program does not need to be loaded.
  • the driver can avoid the security risk caused by loading the driver, and has the effect of safely and efficiently increasing the available space of the disk partition.
  • Embodiment 3 Referring to FIG. 3, the embodiment provides an apparatus for moving software, and the apparatus includes:
  • a determining module 301 configured to determine software information of the software to be moved, where the software information includes at least original folder information corresponding to the software to be moved;
  • the determining module 302 is configured to determine, according to the software information of the software to be moved determined by the determining module 301, whether the software to be moved meets the moving condition;
  • the moving module 303 is configured to: after the determining module 302 determines that the software to be moved meets the moving condition, copy the file in the original folder corresponding to the original folder information to the moving target folder, and delete the original folder in the original folder.
  • the location creates a link file that points to the path where the target folder is located.
  • the destination folder is on a different disk partition than the original folder.
  • the determining module 301 is further configured to obtain an indication of the moving software before determining the software information of the software to be moved, and determine the software to be moved according to the instruction.
  • the determining module 301 is specifically configured to detect and determine the software information of the software to be moved in the registry; or establish a software feature library containing the software information, and detect the software feature database. And determine the software information of the software to be moved.
  • the determining module 302 is specifically configured to obtain a filtering list that restricts software migration. If the software information of the software to be moved determined by the determining module 301 matches the filtering condition in the filtering list, it is determined that the software to be moved does not satisfy the moving condition, otherwise, the determining The software to be moved meets the moving conditions;
  • the filtering condition in the filtering list is not specifically limited in this embodiment, for example, at least one of a software path, a software name, and a registry key value to be filtered.
  • the moving software device further includes:
  • the record management module 304 is configured to record the transfer information in the process of moving the software to be moved by the transfer module 303 when the determination module 302 determines that the software to be moved conforms to the transfer condition, and manage the moved software according to the transfer information.
  • the moving software device further includes:
  • the identification module 305 is configured to identify, for the link file and the target folder, prompt information for prompting the user.
  • the device provided in this embodiment can ensure that the software data is not lost by copying the file corresponding to the software to be moved to the moved target folder, and after the original folder is deleted, the pointing target file is established at the location of the original folder.
  • the link file of the path of the folder can ensure that the file before the migration can still be accessed in the original file location, thus not affecting the software performance, and since the solution does not need to establish a virtual platform between the software and the system, the operation efficiency can be improved, and The solution does not need to load the driver, so it can avoid the security risk caused by the load driver, and has the effect of safely and efficiently increasing the available space of the disk partition.
  • the software for moving the software provided by the foregoing embodiment moves the software
  • only the above functional modules are used.
  • the division of the blocks is exemplified.
  • the above function assignments may be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device for moving the software provided by the above embodiment is the same as the method for moving the software. For details, refer to the method embodiment, and details are not described herein.
  • All or part of the steps in the embodiments of the present invention may be implemented by using software, and the corresponding software program may be stored in a readable storage medium, such as an optical disk or a hard disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Description

搬移软件的方法及装置 技术领域
本发明涉及计算机领域, 特别涉及一种搬移软件的方法及装置。 说
背景技术
随着计算机及互联网技术的发展, 计算机在人们的工作、 生活中的作用越来越重要, 各种功能的软件也越来越多。 在安装软件时, 大多数软件的安装路径被默认为系统磁盘分 区, 而很多用户在安装软件程序的过程中, 又时书常忽略修改默认路径, 致使大多数软件通 常安装在系统磁盘分区中, 导致计算机系统磁盘分区的可用空间越来越小。
在解决计算机系统磁盘分区的可用空间越来越小的问题时, 现有技术提供了一种云端 软件平台, 该云端软件平台通过在使用时加载驱动, 并在软件与操作系统之间建立虚拟平 台, 使软件虚拟化, 从而可以降低软件占用的磁盘分区空间。
在实现本发明的过程中, 发明人发现现有技术至少存在以下缺点:
由于现有技术提供的云端软件平台需要在软件与操作系统之间建立虚拟平台, 因而将 会影响软件和系统的运行效率, 且又由于加载驱动会存在一定的安全隐患, 导致将对系统 带来一定的安全风险。 发明内容
为了在保证数据不丢失, 并且不影响软件性能的前提下, 提供一种安全、 高效地提高 磁盘分区可用空间的方式, 本发明实施例提供了一种搬移软件的方法及装置。 所述技术方 案如下- 一方面, 提供了一种搬移软件的方法, 所述方法包括:
确定待搬移软件的软件信息, 所述软件信息至少包括所述待搬移软件对应的原文件夹 信息;
根据所述待搬移软件的软件信息判断所述待搬移软件是否满足搬移条件;
如果是, 则将所述原文件夹信息对应的原文件夹中的文件拷贝到搬移的目标文件夹, 并删除所述原文件夹, 在所述原文件夹所在位置建立指向所述目标文件夹所在路径的链接 文件, 所述目标文件夹与所述原文件夹位于不同的磁盘分区。 其中, 所述确定待搬移软件的软件信息之前, 还包括:
获取搬移软件的指示, 根据所述指示确定待搬移软件。
所述确定待搬移软件的软件信息, 具体包括:
在注册表中检测并确定所述待搬移软件的软件信息;
或者,建立包含软件信息的软件特征库, 在所述软件特征库中检测并确定所述待搬移软 件的软件信息。
所述根据所述待搬移软件的软件信息判断所述待搬移软件是否满足搬移条件, 具体包 括- 获取限制软件搬移的过滤名单, 如果所述待搬移软件的软件信息与所述过滤名单中的 过滤条件相匹配, 则判断所述待搬移软件不满足搬移条件, 否则, 判断所述待搬移软件满 足搬移条件;
其中, 所述过滤名单中的过滤条件至少包括需过滤的软件路径、 软件名称和注册表键 值中的一种。
优选地, 所述根据所述待搬移软件的软件信息判断所述待搬移软件是否满足搬移条件 之后, 还包括:
如果判断所述待搬移软件符合搬移条件, 则在搬移所述待搬移软件的过程中记录搬移 信息, 并根据所述搬移信息对所述待搬移软件进行管理。
优选地, 所述在所述原文件夹所在位置建立指向所述目标文件夹所在路径的链接文件 之后, 还包括:
对所述链接文件及所述目标文件夹标识用于提示用户的提示信息。
另一方面, 还提供了一种搬移软件的装置, 所述装置包括:
确定模块, 用于确定待搬移软件的软件信息, 所述软件信息至少包括所述待搬移软件 对应的原文件夹信息;
判断模块, 用于根据所述确定模块确定的所述待搬移软件的软件信息判断所述待搬移 软件是否满足搬移条件;
搬移模块, 用于在所述判断模块判断出所述待搬移软件符合搬移条件之后, 将所述原 文件夹信息对应的原文件夹中的文件拷贝到搬移的目标文件夹, 并删除所述原文件夹, 在 所述原文件夹所在位置建立指向所述目标文件夹所在路径的链接文件, 所述目标文件夹与 所述原文件夹位于不同的磁盘分区。
其中, 所述确定模块在确定待搬移软件的软件信息之前, 还用于获取搬移软件的指示, 根据所述指示确定待搬移软件。 具体地, 所述确定模块在确定待搬移软件的软件信息时, 具体用于在注册表中检测并 确定所述待搬移软件的软件信息;或者,建立包含软件信息的软件特征库, 在所述软件特征 库中检测并确定所述待搬移软件的软件信息。
所述判断模块, 具体用于获取限制软件搬移的过滤名单, 如果所述确定模块确定的所 述待搬移软件的软件信息与所述过滤名单中的过滤条件相匹配, 则判断所述待搬移软件不 满足搬移条件, 否则, 判断所述待搬移软件满足搬移条件。
优选地, 所述装置, 还包括:
记录管理模块, 用于在所述判断模块判断出所述待搬移软件符合搬移条件时, 在搬移 所述待搬移软件的过程中记录搬移信息, 并根据所述搬移信息对所述待搬移软件进行管理。
优选地, 所述装置, 还包括:
标识模块, 用于对所述链接文件及所述目标文件夹标识用于提示用户的提示信息。 本发明实施例提供的技术方案的有益效果是:
通过将待搬移软件对应的文件拷贝到搬移的目标文件夹,可以保证数据不丢失, 并通过 在删除原文件夹之后,在原文件夹所在位置建立指向目标文件夹所在路径的链接文件,可以 保证在搬移前位置仍可以访问该软件,因而不影响软件性能, 且由于该方案无需在软件与系 统之间建立虚拟平台, 从而可以提高运行效率, 且由于该方案无需加载驱动, 从而可以避 免因加载驱动带来的安全风险, 具有安全、 高效地提高磁盘分区可用空间的效果。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所需要使用的 附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本 领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的 附图。
图 1是本发明实施例一提供的搬移软件的方法流程图;
图 2是本发明实施例二提供的搬移软件的方法流程图;
图 3是本发明实施例三提供的搬移软件的装置结构示意图;
图 4是本发明实施例三提供的另一种搬移软件的装置结构示意图;
图 5是本发明实施例三提供的又一种搬移软件的装置结构示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一步地详细描述。
实施例一
参见图 1, 本实施例提供了一种搬移软件的方法, 方法流程具体如下:
101: 确定待搬移软件的软件信息, 软件信息至少包括该待搬移软件对应的原文件夹信 息;
102: 根据该待搬移软件的软件信息判断该待搬移软件是否满足搬移条件, 如果是, 则 执行步骤 103, 否则, 流程结束;
103: 将该原文件夹信息对应的原文件夹中的文件拷贝到搬移的目标文件夹, 并刪除该 原文件夹中的文件, 在该原文件夹所在位置建立指向目标文件夹所在路径的链接文件, 目 该目标文件夹与该原文件夹位于不同的磁盘分区。
本实施例提供的方法, 通过将待搬移软件对应的文件拷贝到搬移的目标文件夹,可以保 证软件数据不丢失, 并通过在删除原文件夹之后,在原文件夹所在位置建立指向目标文件夹 所在路径的链接文件,可以保证在搬移前位置仍然可以访问该软件,因而不影响软件性能, 且由于该方案无需在软件与系统之间建立虚拟平台, 从而可以提高运行效率, 且由于该方 案无需加载驱动, 从而可以避免因加载驱动带来的安全风险, 具有安全、 高效地提高磁盘 分区分区可用空间的效果。 实施例二
针对安装软件致使系统磁盘分区可用空间越来越小的问题, 本实施例提供了一种搬移 软件的方法, 该方法不仅可以通过将系统磁盘分区上的可搬移软件搬移到其他磁盘分区上, 释放系统磁盘分区空间, 从而提高系统磁盘分区的可用空间; 且由于在搬移软件之前, 需 要对待搬移软件是否满足搬移条件进行判断, 因此, 还可以在不影响软件性能的前提下, 满足用户搬移任意软件的需求。 参见图 2, 方法流程具体如下:
201: 确定待搬移软件的软件信息, 软件信息至少包括该待搬移软件对应的原文件夹信 息;
其中, 待搬移软件的软件信息还可以包括待搬移软件对应的名称、 图标等信息。 待搬 移软件对应的原文件夹信息包括但不限于原文件夹名称、 原文件夹的路径等信息, 本实施 例不对具体的原文件夹信息进行限定, 同样不对具体的待搬移软件进行限定, 实际应用中, 可由用户选择确定。 为了保证更多的软件能够搬移, 从而为用户选择待搬移软件提供便利, 可以预先检测出计算机中安装的所有软件, 并以列表的形式显示给用户, 供用户从中选择 待搬移软件。 具体实现时, 可为用户提供搬移软件的操作窗口, 由用户选择确定待搬移软 件。 当用户选择待搬移软件之后, 也就意味着给出了搬移软件的指示, 在获取到搬移软件 的指示, 并根据该指示确定待搬移软件之后, 即可触发确定待搬移软件的软件信息以及后 续的搬移步骤。
本实施例不对确定待搬移软件的软件信息的方式进行限定, 具体实现时, 包括但不限 于以下两种方式:
一、 在注册表中检测并确定待搬移软件的软件信息;
针对该种方式, 由于注册表中存储了系统和软件应用程序的设置信息, 因此, 可通过 注册表检测到待搬移软件的安装路径, 该安装路径即为待搬移软件的根目录及对应的原文 件夹等软件信息。
二、 建立包含软件信息的软件特征库, 在该软件特征库中检测并确定待搬移软件的软 件信息。
针对该种方式, 在建立软件特征库时, 本实施例不对获取库中软件信息的方式进行具 体限定。 实际应用时, 软件特征库中包含的软件信息除了可以通过在注册表中进行检测得 到, 对于在注册表中检测不到的信息, 还可以采用配合服务器检测, 同时对开始程序菜单, 桌面程序等区域进行检测的方式。 除此之外, 对于釆用在注册表中检测, 并配合服务器检 测的方式, 仍然检测不出的一类信息, 还可以通过设置高级操作选项的方式, 由用户选择 并完成该类信息的填充。
202: 根据待搬移软件的软件信息判断待搬移软件是否满足搬移条件, 如果是, 执行步 骤 203, 否则, 流程结束;
具体地, 根据待搬移软件的软件信息判断待搬移软件是否满足搬移条件时, 具体包括: 获取限制软件搬移的过滤名单, 如果待搬移软件的软件信息与过滤名单中的过滤条件 相匹配, 则判断该待搬移软件不满足搬移条件, 否则, 判断该待搬移软件满足搬移条件。
其中, 限制软件搬移的过滤名单可以从服务器上获取, 本实施例不对获取过滤名单的 方式以及该过滤名单中的具体过滤条件进行限定, 过滤条件可以为一至多个, 过滤条件可 以至少包括需过滤的软件路径、 软件名称和注册表键值中的一种, 在判断待搬移软件是否 满足搬移条件时, 待搬移软件的软件信息满足其中的一条或者多条过滤条件, 都将判断该 待搬移软件不满足搬移条件。 另外, 本实施例不对过滤名单的具体格式及内容进行限定, 例如, 获取到的过滤名单的格式及内容可通过以下一段程序表示:
<?xml version= " 1. 0,, encoding= "utf-8 " ?>
<Blackl i st>
<BlackNode Id= " 1 " Type= " 1 " Relation= " 1 " > <Path Dynameic- " I " >%SystemRoot%</Path>
<KeyNameX/KeyName>
<Di spl ayNameX/Disp 1 ay Name)
</BlackNode>
</Blackl i st>
从上述过滤名单的内容中可以看出: 该过滤名单中有 3个过滤条件 Path、 KeyName和 Display, 其中, Path表示需要过滤的路径, 支持环境变量的定义; KeyName表示注册表中 HKEY_LOCAL_MACHINE\SOFTWA E\Microsoft\Windows\CurrentVersion\Uninstal l 中的键 值; Di splayName表示软件的名称, 该名称支持模糊匹配, 因而可与软件的原文件夹名称相 对应。
以安装在系统目录%syStem%SyStem32 中的软件为待搬移软件为例, 由于上述限制软件 搬移的过滤名单中的 Path条件限定了路径%5 8^!111?0^%, 则应该判断该待搬移软件不满足 搬移条件。
由于对待搬移软件是否满足搬移条件进行了判断, 因而可以对一些不能搬移的软件起 到过滤的作用, 避免了出现软件搬移不完全的情况, 即可保证软件搬移的完全和完备性, 其中, 软件的完备性是指软件正常运行所需要的一切资源都存在, 且按照软件自身认为的 方式存在, 即软件可以找到自身的注册表信息、 运行所依赖的库文件、 自身所需要的加载 资源文件、 可获取的数据文件等。
203: 将该待搬移软件对应的原文件夹中的文件拷贝到搬移的目标文件夹, 并删除该原 文件夹, 在该原文件夹所在位置建立指向目标文件夹所在路径的链接文件;
其中, 该目标文件夹与该原文件夹位于不同的磁盘分区。 本实施例不对搬移的目标文 件夹进行具体限定, 实际应用过程中, 可由用户进行选择, 例如, 待搬移软件对应的原文 件夹在 C磁盘分区, 用户可以选择将目标文件夹设置在 D磁盘分区或 E磁盘分区, 即选择 将待搬移软件搬移到 D磁盘分区或 E磁盘分区。
通过该步骤, 由于在被删除的原文件夹位置上建立了链接文件, 因此, 表面上软件对 应的原文件夹仍然存在, 并且操作系统中任何对该原文件夹的操作都会通过链接文件自动 重定向到目标文件夹所在的路径。 也就是说, 在对软件进行操作时, 对原文件夹位置的链 接文件的任何操作都会对目标文件夹产生相应的影响, 因而可以使对链接文件及目标文件 夹的操作实现同步。 例如, 对于软件的卸载, 特别是通过在注册表中删除该软件的注册信 息的自动卸载方式, 卸载程序在将原文件夹位置的链接文件进行删除的同时, 也将导致目 标文件夹中的文件被清空, 因而不会留下冗余文件。 又由于链接文件占用几乎为零的空间, 不仅可以减少磁盘分区的空间, 还能够保证软件正常运行。
优选地, 本实施例提供的方法, 还包括在搬移待搬移软件的过程中记录搬移信息, 并 根据搬移信息对待搬移软件进行管理的优选步骤, 具体内容如下:
由于搬移软件, 大多数是对软件对应的文件进行操作, 为了保证不影响软件的性能, 在软件搬移的过程中, 需要保证任何一个搬移过程都可以回退, 即恢复到搬移前的状态。 其中, 回退有两种情况, 一种是在搬移过程中, 一种是在成功完成搬移之后。 对于搬移过 程中的回退, 任何一个搬移过程失败, 都需要将该待搬移软件恢复到搬移前的状态, 因此, 记录的搬移信息应至少包括搬移的状态码, 该状态码用来标识每个搬移过程是成功状态还 是失败状态, 如果是失败状态, 还需要记录失败的原因信息, 如果是成功状态, 则继续进 行搬移的其他过程。 在成功搬移完软件之后, 根据用户选择, 同样也可以将搬移后的软件 恢复到搬移前的状态。 需要说明的是, 在成功搬移完软件之后, 即使不需要将软件恢复到 搬移前的状态, 也应该记录软件搬移的具体信息, 例如, 搬移前的路径及搬移后的路径等, 以便用户对搬移软件进行管理。 本实施例不对记录的搬移信息的内容进行具体限定, 实际 应用过程中, 还可以记录其他信息。
204: 对链接文件及目标文件夹标识用于提示用户的提示信息, 流程结束。
该步骤为优选步骤, 由于用户手动修改链接文件或者目标文件夹, 可能导致软件无法 使用, 并导致两个文件夹做没有必要的同步, 给用户的使用造成不便, 因此, 有必要提示 用户手动修改链接文件及目标文件夹的危险, 对于已经搬移的软件需要对用户保持透明, 为此需要对建立的链接文件及目标文件夹标识提示信息, 以提示用户不能随意修改、 删除 文件, 从而保证软件的正常运行。 本实施例不对具体标识方式进行限定, 实际应用过程中, 可以采取在链接文件及目标文件夹标志上添加叹号 "!" 的方式, 以起到提示用户的作用。 进一步地, 还可以在用户将鼠标移动到该链接文件或者目标文件夹时, 显示 "请不要删除" 等提示信息。
本实施例提供的方法, 通过将待搬移软件对应的文件拷贝到搬移的目标文件夹,可以保 证软件数据不丟失, 并通过在删除原文件夹之后,在原文件夹所在位置建立指向目标文件夹 所在路径的链接文件,可以保证在搬移前位置仍然可以访问该软件,因而不影响软件性能, 且由于该方案无需在软件与系统之间建立虚拟平台, 从而可以提高运行效率, 且由于该方 案无需加载驱动, 从而可以避免因加载驱动带来的安全风险, 具有安全、 高效地提高磁盘 分区可用空间的效果。 实施例三 参见图 3, 本实施例提供了一种搬移软件的装置, 该装置包括:
确定模块 301, 用于确定待搬移软件的软件信息, 软件信息至少包括待搬移软件对应的 原文件夹信息;
判断模块 302,用于根据确定模块 301确定的待搬移软件的软件信息判断待搬移软件是 否满足搬移条件;
搬移模块 303, 用于在判断模块 302判断出待搬移软件符合搬移条件之后, 将原文件夹 信息对应的原文件夹中的文件拷贝到搬移的目标文件夹, 并删除原文件夹, 在原文件夹所 在位置建立指向目标文件夹所在路径的链接文件, 目标文件夹与原文件夹位于不同的磁盘 分区。
其中, 确定模块 301在确定待搬移软件的软件信息之前, 还用于获取搬移软件的指示, 根据该指示确定待搬移软件。
进一步地, 确定模块 301 在确定待搬移软件的软件信息时, 具体用于在注册表中检测 并确定待搬移软件的软件信息;或者,建立包含软件信息的软件特征库, 在软件特征库中检 测并确定待搬移软件的软件信息。
判断模块 302, 具体用于获取限制软件搬移的过滤名单, 如果确定模块 301确定的待搬 移软件的软件信息与过滤名单中的过滤条件相匹配, 则判断待搬移软件不满足搬移条件, 否则, 判断待搬移软件满足搬移条件;
其中, 本实施例不对过滤名单中的过滤条件进行具体限定, 例如, 至少包括需过滤的 软件路径、 软件名称和注册表键值中的一种。
优选地, 参见图 4, 该搬移软件装置, 还包括:
记录管理模块 304, 用于在判断模块 302判断出待搬移软件符合搬移条件时, 在搬移模 块 303搬移待搬移软件的过程中记录搬移信息, 并根据搬移信息对被搬移软件进行管理。
优选地, 参见图 5, 该搬移软件装置, 还包括:
标识模块 305, 用于对链接文件及目标文件夹标识用于提示用户的提示信息。
综上, 本实施例提供的装置, 通过将待搬移软件对应的文件拷贝到搬移的目标文件夹, 可以保证软件数据不丢失, 并通过删除原文件夹之后,在原文件夹所在位置建立指向目标文 件夹所在路径的链接文件,可以保证在原文件位置仍然可以访问搬移前的文件,因而不影响 软件性能, 且由于该方案无需在软件与系统之间建立虚拟平台, 从而可以提高运行效率, 且由于该方案无需加载驱动, 因而可以避免因加载驱动带来的安全风险, 具有安全、 高效 地提高磁盘分区可用空间的效果。
需要说明的是: 上述实施例提供的搬移软件的装置在搬移软件时, 仅以上述各功能模 块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分配由不同的功能模块 完成, 即将设备的内部结构划分成不同的功能模块, 以完成以上描述的全部或者部分功能。 另外, 上述实施例提供的搬移软件的装置与搬移软件的方法实施例属于同一构思, 其具体 实现过程详见方法实施例, 这里不再赘述。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
本发明实施例中的全部或部分步骤, 可以利用软件实现, 相应的软件程序可以存储在 可读取的存储介质中, 如光盘或硬盘等。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

1、 一种搬移软件的方法, 其特征在于, 所述方法包括:
确定待搬移软件的软件信息, 所述软件信息至少包括所述待搬移软件对应的原文件夹信 息;
根据所述待搬移软件的权软件信息判断所述待搬移软件是否满足搬移条件;
如果是, 则将所述原文件夹信息对应的原文件夹中的文件拷贝到搬移的目标文件夹, 并 删除所述原文件夹,在所述原文件夹所在位置建立指向所述目标文件夹所在路径的链接文件, 所述目标文件夹与所述原文件夹位于不同的磁盘分区。
2、根据权利要求 1所述的方法, 其特征在于, 所述确定待搬移软件的软件信息之前, 还 包括:
获取搬移软件的指示, 根据所述指示确定待搬移软件。
3、根据权利要求 1所述的方法, 其特征在于, 所述确定待搬移软件的软件信息, 具体包 括: 书
在注册表中检测并确定所述待搬移软件的软件信息;
或者,建立包含软件信息的软件特征库,在所述软件特征库中检测并确定所述待搬移软件 的软件信息。
4、根据权利要求 1所述的方法, 其特征在于, 所述根据所述待搬移软件的软件信息判断 所述待搬移软件是否满足搬移条件, 具体包括:
获取限制软件搬移的过滤名单, 如果所述待搬移软件的软件信息与所述过滤名单中的过 滤条件相匹配, 则判断所述待搬移软件不满足搬移条件, 否则, 判断所述待搬移软件满足搬 移条件。
5、根据权利要求 4所述的方法, 其特征在于, 所述过滤名单中的过滤条件至少包括需过 滤的软件路径、 软件名称和注册表键值中的一种。
6、根据权利要求 1所述的方法, 其特征在于, 所述根据所述待搬移软件的软件信息判断 所述待搬移软件是否满足搬移条件之后, 还包括:
如果判断所述待搬移软件符合搬移条件, 则在搬移所述待搬移软件的过程中记录搬移信 息, 并根据所述搬移信息对所述待搬移软件进行管理。
7、根据权利要求 1所述的方法, 其特征在于, 所述在所述原文件夹所在位置建立指向所 述目标文件夹所在路径的链接文件之后, 还包括: 对所述链接文件及所述目标文件夹标识用于提示用户的提示信息。
8、 一种搬移软件的装置, 其特征在于, 所述装置包括:
确定模块, 用于确定待搬移软件的软件信息, 所述软件信息至少包括所述待搬移软件对 应的原文件夹信息;
判断模块, 用于根据所述确定模块确定的所述待搬移软件的软件信息判断所述待搬移软 件是否满足搬移条件;
搬移模块, 用于在所述判断模块判断出所述待搬移软件符合搬移条件之后, 将所述原文 件夹信息对应的原文件夹中的文件拷贝到搬移的目标文件夹, 并删除所述原文件夹, 在所述 原文件夹所在位置建立指向所述目标文件夹所在路径的链接文件, 所述目标文件夹与所述原 文件夹位于不同的磁盘分区。
9、根据权利要求 8所述的装置, 其特征在于, 所述确定模块在确定待搬移软件的软件信 息之前, 还用于获取搬移软件的指示, 根据所述指示确定待搬移软件。
10、 根据权利要求 8所述的装置, 其特征在于, 所述确定模块在确定待搬移软件的软件 信息时, 具体用于在注册表中检测并确定所述待搬移软件的软件信息;或者,建立包含软件信 息的软件特征库, 在所述软件特征库中检测并确定所述待搬移软件的软件信息。
11、 根据权利要求 8所述的装置, 其特征在于, 所述判断模块, 具体用于获取限制软件 搬移的过滤名单, 如果所述确定模块确定的所述待搬移软件的软件信息与所述过滤名单中的 过滤条件相匹配, 则判断所述待搬移软件不满足搬移条件, 否则, 判断所述待搬移软件满足 搬移条件。
12、 根据权利要求 8所述的装置, 其特征在于, 所述装置, 还包括:
记录管理模块, 用于在所述判断模块判断出所述待搬移软件符合搬移条件时, 在搬移所 述待搬移软件的过程中记录搬移信息, 并根据所述搬移信息对所述待搬移软件进行管理。
13、 根据权利要求 8所述的装置, 其特征在于, 所述装置, 还包括- 标识模块, 用于对所述链接文件及所述目标文件夹标识用于提示用户的提示信息。
PCT/CN2011/071092 2010-04-07 2011-02-18 搬移软件的方法及装置 Ceased WO2011124101A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2011238301A AU2011238301A1 (en) 2010-04-07 2011-02-18 Method and device for moving software

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010101430066A CN102214119A (zh) 2010-04-07 2010-04-07 搬移软件的方法及装置
CN201010143006.6 2010-04-07

Publications (1)

Publication Number Publication Date
WO2011124101A1 true WO2011124101A1 (zh) 2011-10-13

Family

ID=44745440

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071092 Ceased WO2011124101A1 (zh) 2010-04-07 2011-02-18 搬移软件的方法及装置

Country Status (3)

Country Link
CN (1) CN102214119A (zh)
AU (1) AU2011238301A1 (zh)
WO (1) WO2011124101A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116628706A (zh) * 2023-06-15 2023-08-22 任务传(山西)科技有限公司 一种基于互联网的软件管理系统

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445622A (zh) * 2012-06-20 2017-02-22 青岛海信移动通信技术股份有限公司 应用程序卸载方法、卸载装置及移动终端
CN102946404B (zh) * 2012-07-20 2015-10-14 珠海金山办公软件有限公司 在用户端显示选择性同步文件夹的方法及装置
CN103324737A (zh) * 2013-06-28 2013-09-25 贝壳网际(北京)安全技术有限公司 移动终端中数据搬移的方法、装置和移动终端
CN112711561A (zh) * 2020-12-31 2021-04-27 珠海豹趣科技有限公司 软件移动的处理方法、装置以及存储介质
CN112799600A (zh) * 2021-02-09 2021-05-14 珠海豹趣科技有限公司 一种软件搬移方法、搬移软件的还原方法及装置
CN117251417A (zh) * 2023-05-29 2023-12-19 北京百度网讯科技有限公司 文件夹的复制方法、装置、电子设备、存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560746A (zh) * 2004-02-27 2005-01-05 中国人民解放军国防科学技术大学 基于操作系统反向页表的页迁移和复制方法
US20080163239A1 (en) * 2006-12-29 2008-07-03 Suresh Sugumar Method for dynamic load balancing on partitioned systems
CN101320368A (zh) * 2007-06-06 2008-12-10 佳能株式会社 文档管理方法、系统和设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7958133B2 (en) * 2005-04-27 2011-06-07 At&T Intellectual Property Ii, L.P. Application conversion of source data
JP4414381B2 (ja) * 2005-08-03 2010-02-10 富士通株式会社 ファイル管理プログラム、ファイル管理装置、ファイル管理方法
CN101119387B (zh) * 2007-09-10 2012-11-14 北京网秦天下科技有限公司 一种便利于定制、配置与迁移手机软件业务的方法和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1560746A (zh) * 2004-02-27 2005-01-05 中国人民解放军国防科学技术大学 基于操作系统反向页表的页迁移和复制方法
US20080163239A1 (en) * 2006-12-29 2008-07-03 Suresh Sugumar Method for dynamic load balancing on partitioned systems
CN101320368A (zh) * 2007-06-06 2008-12-10 佳能株式会社 文档管理方法、系统和设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116628706A (zh) * 2023-06-15 2023-08-22 任务传(山西)科技有限公司 一种基于互联网的软件管理系统

Also Published As

Publication number Publication date
AU2011238301A1 (en) 2012-11-08
CN102214119A (zh) 2011-10-12

Similar Documents

Publication Publication Date Title
KR101781447B1 (ko) 시스템 리셋
AU2013364255B2 (en) Application programming interfaces for data synchronization with online storage systems
WO2011124101A1 (zh) 搬移软件的方法及装置
CN101826029B (zh) 用于合并虚拟化子层的方法与系统
US20130014102A1 (en) Planned virtual machines
CN1776670A (zh) 用于验证迁移文件的元数据的方法和系统
US20180060350A1 (en) Storage Virtualization For Directories
CN105474206A (zh) 支持按需数据传输的虚拟同步
CN115964061A (zh) 插件更新方法、装置、电子设备和计算机可读存储介质
CN112262378B (zh) 脱水文件的层级的水合
US10664598B1 (en) Firmware security patch deployment
US10095616B2 (en) Garbage collection for virtual environments
US10223206B1 (en) Method and system to detect and delete uncommitted save sets of a backup
US20130246347A1 (en) Database file groups
US20140156943A1 (en) Information processing apparatus, information processing method, and program
CN109144948B (zh) 应用文件定位的方法、装置、电子设备和存储器
CN111338751B (zh) 同ceph集群中数据跨pool迁移方法及装置
JP5141196B2 (ja) センタ管理装置、センタ管理プログラム、センタ管理方法
CN114357061B (zh) 一种恢复区块链数据的方法以及相关设备
CN116880877A (zh) 虚拟机增强工具升级方法、装置、计算机设备和存储介质
CN116301948A (zh) 应用安装方法、装置、电子设备及机器可读存储介质
JP4765968B2 (ja) ファイル管理システム及び方法並びにプログラム
CN115421785B (zh) 应用程序的移植处理方法、装置和介质
CN104679562B (zh) 一种强力卸载软件的方法及系统
US10585601B2 (en) Information processing apparatus, storage apparatus, and information processing system wherein virtual volume to physical volume mapping is updated from management machine responsive to storage indicating said physical volume is not present

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11765019

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 8136/CHENP/2012

Country of ref document: IN

WWE Wipo information: entry into national phase

Ref document number: 1201004962

Country of ref document: TH

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2011238301

Country of ref document: AU

Date of ref document: 20110218

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112012024213

Country of ref document: BR

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 02/04/2013)

122 Ep: pct application non-entry in european phase

Ref document number: 11765019

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01E

Ref document number: 112012024213

Country of ref document: BR

Free format text: APRESENTAR, EM ATE 60 DIAS, NOVAS FOLHAS DE DESENHOS, SE FOR O CASO, VISTO QUE NA PETICAO 020120108403 DE 22/11/2012 FORAM INFORMADAS 5 PAGINAS DE DESENHO, NO ENTANTO, FORAM ENTREGUES APENAS AS PAGINAS DE 1/4 A 4/4.

ENPW Started to enter national phase and was withdrawn or failed for other reasons

Ref document number: 112012024213

Country of ref document: BR

Free format text: PEDIDO CONSIDERADO RETIRADO EM RELACAO AO BRASIL ( CODIGO 1.2), POR NAO CUMPRIR A EXIGENCIA FEITA NA RPI NO 2591 DE 01/09/2020, NAO ATENDENDO DESTA FORMA AS DETERMINACOES REFERENTES A ENTRADA DO PEDIDO DA FASE NACIONAL.