[go: up one dir, main page]

CN103699636A - Method for moving folder/file randomly under WIN7-32/64bit operating system - Google Patents

Method for moving folder/file randomly under WIN7-32/64bit operating system Download PDF

Info

Publication number
CN103699636A
CN103699636A CN201310718598.3A CN201310718598A CN103699636A CN 103699636 A CN103699636 A CN 103699636A CN 201310718598 A CN201310718598 A CN 201310718598A CN 103699636 A CN103699636 A CN 103699636A
Authority
CN
China
Prior art keywords
software
shell
registry
windows
subkey
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.)
Pending
Application number
CN201310718598.3A
Other languages
Chinese (zh)
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.)
Dalian University
Original Assignee
Dalian University
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 Dalian University filed Critical Dalian University
Priority to CN201310718598.3A priority Critical patent/CN103699636A/en
Publication of CN103699636A publication Critical patent/CN103699636A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法,包括:打开注册表编辑器,分别打开注册表编辑器的主键与子键,直接删除上述目录下的子键Shell,导入已经编辑好的注册表文件。实现了在WIN7-32/64bit下随意移动处于非桌面目录下的文件/文件夹的位置。

Figure 201310718598

The invention discloses a method for freely moving folder/file positions under the WIN7-32/64bit operating system, comprising: opening the registry editor, opening the primary key and subkey of the registry editor respectively, and directly deleting the above-mentioned directory Under the subkey Shell, import the edited registry file. Realized the free movement of files/folders in non-desktop directories under WIN7-32/64bit.

Figure 201310718598

Description

一种在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法A method to move folders/files at will under WIN7-32/64bit operating system

技术领域technical field

本发明涉及电学领域,尤其涉及一种在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法。The invention relates to the field of electricity, in particular to a method for freely moving folders/files under the WIN7-32/64bit operating system.

背景技术Background technique

目前,Windows操作系统注册表概述:注册表是Microsoft Windows中的一个重要的数据库,用于存储系统和应用程序的设置信息。早在Windows3.0推出OLE技术的时候,注册表就已经出现。随后推出的Windows NT是第一个从系统级别广泛使用注册表的操作系统。但是,从Microsoft Windows95开始,注册表才真正成为Windows用户经常接触的内容,并在其后的操作系统中继续沿用至今。At present, an overview of the Windows operating system registry: The registry is an important database in Microsoft Windows for storing system and application setting information. As early as when Windows 3.0 launched OLE technology, the registry has already appeared. The subsequent Windows NT was the first operating system to make extensive use of the registry at the system level. However, starting from Microsoft Windows95, the registry has really become the content that Windows users often come into contact with, and it continues to be used in subsequent operating systems to this day.

注册表的由来:在Windows3.x操作系统中,注册表是一个极小文件,其文件名为Reg.bat,里面只存放了某些文件类型的应用程序关联,大部分的设置放在Win.ini、System.ini等多个初始化INI文件中。由于这些初始化文件不便于管理和维护,时常出现一些因INI文件遭到破坏而导致系统无法启动的问题。为了使系统运行得更为稳定、健壮,Windows95/98设计师们借用了Windows NT中的注册表的思想,将注册表引入到Windows95/98操作系统中,而且将INI文件中的大部分设置也移植到注册表中,因此,注册表在Windows95/98操作系统的启动、运行过程中起着重要的作用。The origin of the registry: In the Windows3. ini, System.ini and other initialization INI files. Because these initialization files are not easy to manage and maintain, some problems often occur that the system cannot be started due to the damage of the INI file. In order to make the system run more stable and robust, Windows95/98 designers borrowed the idea of the registry in Windows NT, introduced the registry into the Windows95/98 operating system, and changed most of the settings in the INI file to Transplanted into the registry, therefore, the registry plays an important role in the startup and operation of the Windows95/98 operating system.

注册表的作用:注册表是windows操作系统中的一个核心数据库,其中存放着各种参数,直接控制着windows的启动、硬件驱动程序的装载以及一些windows应用程序的运行,从而在整个系统中起着核心作用。这些作用包括了软、硬件的相关配置和状态信息,比如注册表中保存有应用程序和资源管理器外壳的初始条件、首选项和卸载数据等,联网计算机的整个系统的设置和各种许可,文件扩展名与应用程序的关联,硬件部件的描述、状态和属性,性能记录和其他底层的系统状态信息,以及其他数据等。The role of the registry: the registry is a core database in the windows operating system, which stores various parameters, directly controls the startup of windows, the loading of hardware drivers, and the operation of some windows applications, thus playing a role in the entire system. plays a central role. These functions include related configuration and status information of software and hardware, such as initial conditions, preferences and uninstallation data of applications and explorer shells stored in the registry, settings and various permissions of the entire system of networked computers, Association of file extensions with applications, descriptions, status, and properties of hardware components, performance records and other low-level system state information, and other data.

注册表是为Windows NT和Windows95中所有32位硬件/驱动和32位应用程序设计的数据文件。16位驱动在WinNT下无法工作,所以所有设备都通过注册表来控制,一般这些是通过BIOS来控制的。在Win95下,16位驱动会继续以实模式方式设备工作,它们使用system.ini来控制。16位应用程序会工作在NT或者Win95下,它们的程序仍然会参考win.ini和system.ini文件获得信息和控制。The registry is a data file designed for all 32-bit hardware/drivers and 32-bit applications in Windows NT and Windows95. 16-bit drivers do not work under WinNT, so all devices are controlled through the registry, generally these are controlled through the BIOS. Under Win95, 16-bit drivers will continue to work as real-mode devices, which are controlled using system.ini. 16-bit applications will work under NT or Win95, and their programs will still refer to the win.ini and system.ini files for information and control.

在没有注册表的情况下,操作系统不会获得必须的信息来运行和控制附属的设备和应用程序及正确响应用户的输入。Without the registry, the operating system would not obtain the necessary information to run and control attached devices and applications and respond correctly to user input.

注册表的存放位置:2000/XP注册表文件按功能来分,也是由系统注册表文件和用户注册表文件两类组成的注册表文件存放系统的所有设置信息:系统设置和缺省用户配置数据存放在系统\系统文件夹\SYSTEM32\CONFIG文件夹下的6个文件,DEFAULT、SAM、SECURITY、SOFTWARE、USERDIFF和SYSTEM中,而用户的配置信息存放在系统所在磁盘的\Documents and Setting\文件夹,包括ntuser.dat ntuser.ini ntuser.dat.logThe storage location of the registry: 2000/XP registry files are divided according to functions, and are also composed of two types of system registry files and user registry files. The registry files store all the setting information of the system: system settings and default user configuration data 6 files stored in the system\system folder\SYSTEM32\CONFIG folder, DEFAULT, SAM, SECURITY, SOFTWARE, USERDIFF and SYSTEM, and the user configuration information is stored in the \Documents and Setting\ folder of the disk where the system is located , including ntuser.dat ntuser.ini ntuser.dat.log

注册表的数据结构:注册表由键(或称“项”)、子键(子项)和值项构成。一个键就是分支中的一个文件夹,而子键就是这个文件夹中的子文件夹,子键同样是一个键。一个值项则是一个键的当前定义,由名称、数据类型以及分配的值组成。一个键可以有一个或多个值,每个值的名称各不相同,如果一个值的名称为空,则该值为该键的默认值。如图1,注册表共有5个主键:The data structure of the registry: The registry consists of keys (or "items"), subkeys (subkeys) and value items. A key is a folder in a branch, and a subkey is a subfolder within that folder, and a subkey is also a key. A value item is the current definition of a key, consisting of name, data type, and assigned value. A key can have one or more values, each with a different name, and if a value's name is empty, that value is the default value for that key. As shown in Figure 1, the registry has 5 primary keys:

HKEY_CLASSES_ROOTHKEY_CLASSES_ROOT

HKEY_CURRENT_USERHKEY_CURRENT_USER

HKEY_LOCAL_MACHINEHKEY_LOCAL_MACHINE

HKEY_USERSHKEY_USERS

HKEY_CURRENT_CONFIGHKEY_CURRENT_CONFIG

文件/文件夹的属性:在Windows XP或者Windows7系统下随便打开一个文件夹,查看属性下的“自定义”选项,下拉菜单中有“常规项”、“文档”、“图片”、“音乐”、“视频”这几项,说明Windows系统下,所有文件或者文件夹的类型都是这五种中的一种,这五种类型在注册表中的名称分别为:Properties of files/folders: Open any folder under Windows XP or Windows 7, check the "Custom" option under Properties, and the drop-down menu includes "General Items", "Documents", "Pictures", and "Music" , "Video", these items indicate that under the Windows system, all file or folder types are one of these five types, and the names of these five types in the registry are:

常规项  {5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}General item {5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}

文档    {7D49D726-3C21-4F05-99AA-FDC2C9474656}Document {7D49D726-3C21-4F05-99AA-FDC2C9474656}

图片    {B3690E58-E961-423B-B687-386EBFD83239}Picture {B3690E58-E961-423B-B687-386EBFD83239}

音乐    {94D6DDCC-4A68-4175-A374-BD584A510B78}Music {94D6DDCC-4A68-4175-A374-BD584A510B78}

视频    {5FA96407-7E77-483C-AC93-691D05850DE8}Video {5FA96407-7E77-483C-AC93-691D05850DE8}

Windows XP和Windows7在移动文件/文件夹位置方面的不同:在WindowsXP操作系统下,可以任意移动文件/文件夹的位置,无论这些文件/文件夹是在什么目录下,不管是在桌面还是在一般的盘符下,文件/文件夹的位置都是可以由用户任意移动的,如图2-1和图2-2;但在WIN7-32/64bit下,文件/文件夹的位置无法随意移动,文件夹是否可以随意移动是和注册表的控制信息有关的。Differences between Windows XP and Windows 7 in terms of moving file/folder locations: Under the WindowsXP operating system, you can move files/folders arbitrarily, no matter what directory these files/folders are in, whether it is on the desktop or in the general Under the drive letter, the location of the file/folder can be moved by the user, as shown in Figure 2-1 and Figure 2-2; but under WIN7-32/64bit, the location of the file/folder cannot be moved at will. Whether the folder can be moved at will is related to the control information of the registry.

发明内容Contents of the invention

本发明所要解决的问题就是如何在WIN7-32/64bit下随意移动处于非桌面目录下的文件/文件夹的位置,因此本发明提出了一种通过修改注册表的方式,在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法。The problem to be solved by the present invention is exactly how to arbitrarily move the position of the file/folder under the non-desktop directory under WIN7-32/64bit, so the present invention proposes a mode by modifying the registry, in WIN7-32/64bit A method to move folders/files freely under the operating system.

一种在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法,包括:打开注册表编辑器,分别打开注册表编辑器的主键与子键,直接删除上述目录下的子键Shell,导入已经编辑好的注册表文件。A method for freely moving folders/files under the WIN7-32/64bit operating system, including: opening the registry editor, opening the primary key and subkey of the registry editor respectively, and directly deleting the subkeys in the above directory Shell, import the edited registry file.

具体的:打开注册表编辑器,定位到如下目录:HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\,打开上述目录下的子键Shell,在HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell目录下新建一个子键,并进行命名;Specifically: open the Registry Editor, navigate to the following directory: HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\, open the subkey Shell in the above directory, in HKEY_CURRENT_USER\ Create a new subkey in the Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell directory and name it;

打开新建的子键,在新建两个二进制值FFlags和Mode,其值分别指定为0x43000001和0x4;Open the newly created subkey, and create two new binary values FFlags and Mode, whose values are respectively specified as 0x43000001 and 0x4;

在HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell下再分别新建四个子键;Create four new subkeys under HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell;

然后再分别在这四个新建的子键下新建两个二进制FFlags、Mode,其值分别指定为0x43000001和0x4;Then create two binary FFlags and Mode under the four newly created subkeys, and specify their values as 0x43000001 and 0x4 respectively;

定位到目录HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags,删除以数字命名的项。Navigate to the directory HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags and delete the item named after the number.

上述方法,还包括:将AllFolders项导出保存,删掉整个HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell目录下的Bags项;The above method also includes: exporting and saving the AllFolders item, and deleting the entire Bags item in the HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell directory;

然后再在HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell目录下新建一个叫Bags的项,把刚刚导出的AllFolders项直接导入到Bags项中;Then create a new item called Bags in the HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell directory, and import the newly exported AllFolders item directly into the Bags item;

把HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows目录下的Shell子键导出保存;Export and save the Shell subkey in the HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows directory;

保存修改,关闭注册表编辑器。Save the changes and close the Registry Editor.

本发明的效果:实现了在WIN7-32/64bit下随意移动处于非桌面目录下的文件/文件夹的位置。The effect of the present invention: the position of the file/folder under the non-desktop directory can be freely moved under WIN7-32/64bit.

附图说明Description of drawings

为了更清楚的说明本发明的实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to these drawings without any creative effort.

图1为本发明实施例提供的注册表的示意图;FIG. 1 is a schematic diagram of a registry provided by an embodiment of the present invention;

图2-1为本发明实施例提供的文件/文件夹的位置图;Figure 2-1 is a location map of files/folders provided by the embodiment of the present invention;

图2-2为本发明实施例提供的文件/文件夹的位置图;Figure 2-2 is a location map of files/folders provided by the embodiment of the present invention;

图3-1为本发明实施例提供的注册表编辑器的位置示意图;Figure 3-1 is a schematic diagram of the location of the registry editor provided by the embodiment of the present invention;

图3-2为本发明实施例提供的分别打开注册表的主键和子键的示意图;Fig. 3-2 respectively opens the schematic diagram of the primary key and the subkey of registry provided by the embodiment of the present invention;

图4为本发明实施例提供的Shell目录下有很多子键示意图;Fig. 4 has a lot of subkey schematic diagrams under the Shell directory that the embodiment of the present invention provides;

图5为本发明实施例提供的新建的子键的示意图;FIG. 5 is a schematic diagram of a newly created subkey provided by an embodiment of the present invention;

图6为本发明实施例提供的各个子键的示意图;Fig. 6 is a schematic diagram of each sub-key provided by the embodiment of the present invention;

图7为本发明实施例提供的批处理程序运行的框图。Fig. 7 is a block diagram of the operation of the batch processing program provided by the embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的实施例的目的、技术方案和优点更加清楚,下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚完整的描述:In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the drawings in the embodiments of the present invention:

本发明实施例提供一种在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法,包括:Embodiments of the present invention provide a method for moving folders/files at will under the WIN7-32/64bit operating system, including:

1,打开注册表编辑器,例如:打开方式可以为直接在开始的位置出输入regedit即可,具体的,如图3-1。1. Open the Registry Editor, for example: the opening method can be to directly enter regedit at the beginning position, specifically, as shown in Figure 3-1.

2,分别打开如下主键与子键。如图3-2,如:2. Open the following primary key and subkey respectively. As shown in Figure 3-2, such as:

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows。HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows.

3,直接删除上述目录下的子键Shell。3. Directly delete the subkey Shell in the above directory.

4,导入已经编辑好的注册表文件(.reg)。4. Import the edited registry file (.reg).

首先,修改注册表文件的目录下子键Shell的一些信息,然后再把Shell导出来保存。First, modify some information of the subkey Shell under the directory of the registry file, and then export the Shell to save.

具体的修改过程如下:打开注册表编辑器,定位到如下目录:HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\。The specific modification process is as follows: Open the Registry Editor and navigate to the following directory: HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\.

打开上述目录下的子键Shell,可以看到Shell目录下有很多子键,如图4所示。Open the subkey Shell in the above directory, and you can see that there are many subkeys in the Shell directory, as shown in Figure 4.

在HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell目录下新建一个子键,命名为{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}。Create a new subkey under the HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell directory and name it {5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}.

打开新建的子键,会看到一个默认的字符串值(REG_SZ),它的值是未指定的,对于这个字符串值,不需要进行任何的修改。然后在新建两个二进制值(REG_DWORD)FFlags、Mode,将他们的值分别指定为0x43000001和0x4,如图5。Open the newly created subkey, you will see a default string value (REG_SZ), its value is unspecified, no modification is required for this string value. Then create two binary values (REG_DWORD) FFlags and Mode, and specify their values as 0x43000001 and 0x4, as shown in Figure 5.

在HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell下再分别新建四个子键Create four new subkeys under HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell

{7D49D726-3C21-4F05-99AA-FDC2C9474656}、{7D49D726-3C21-4F05-99AA-FDC2C9474656},

{B3690E58-E961-423B-B687-386EBFD83239}、{B3690E58-E961-423B-B687-386EBFD83239},

{94D6DDCC-4A68-4175-A374-BD584A510B78}、{94D6DDCC-4A68-4175-A374-BD584A510B78},

{5FA96407-7E77-483C-AC93-691D05850DE8}{5FA96407-7E77-483C-AC93-691D05850DE8}

然后再分别在这四个新建的子键下新建两个二进制(REG_DWORD)FFlags、Mode,值分别指定为0x43000001和0x4。Then create two binary (REG_DWORD) FFlags and Mode under the four newly created subkeys, and specify the values as 0x43000001 and 0x4 respectively.

当以上的工作都完成时,进行下面的操作:When the above work is completed, perform the following operations:

定位到目录HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags。可以看到,里面有很多以数字命名的项和一个叫AllFolders的项,现在要做的就是删除这些以数字命名的项,因为正是这些项的存在,将随意移动文件/文件夹变得不可能,如图6。这些以数字命名的项实在是太多了,一一删除变得很麻烦。Navigate to the directory HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags. It can be seen that there are many items named after numbers and an item called AllFolders. What we need to do now is to delete these items named after numbers, because the existence of these items will make it impossible to move files/folders at will. Possible, as shown in Figure 6. There are so many items named after these numbers that it becomes very troublesome to delete them one by one.

下面介绍一个好的方法:先将AllFolders项导出保存,然后直接删掉整个HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell目录下的Bags项,然后再在HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell目录下新建一个叫Bags的项,把刚刚导出的AllFolders项直接导入到Bags项即可。Here is a good method: first export and save the AllFolders item, then directly delete the Bags item in the entire HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell directory, and then in HKEY_CURRENT_USER\Software\Classes\ Create a new item called Bags in the Local Settings\Software\Microsoft\Windows\Shell directory, and import the newly exported AllFolders item directly into the Bags item.

把HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows目录下的Shell子键导出保存。Export and save the Shell subkey in the HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows directory.

保存修改,关闭注册表编辑器。Save the changes and close the Registry Editor.

当用户有这种习惯或者需求时,需要导入的注册表文件(.reg)。如果当用户不喜欢这种修改,想要回到WIN7-32/64bit的默认状态时,也是可能的,因为在导入该注册表文件之前,用户备份了未修改之前的HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell子键,为避免麻烦,可以写一个小的批处理程序(.bat),使用户免去寻找HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell子键,并手动导出保存的麻烦。使用该批处理程序,将使得导出的注册表文件保存在C盘根目录下,名为“不随意移动.reg”,此批处理程序运行的框图如图7。When the user has this habit or demand, the registry file (.reg) needs to be imported. If the user does not like this modification and wants to return to the default state of WIN7-32/64bit, it is also possible, because before importing the registry file, the user backed up the unmodified HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell subkey, in order to avoid trouble, you can write a small batch program (.bat), so that users do not need to find HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell Subkeys, and the hassle of manually exporting saves. Using this batch program, the exported registry file will be saved in the root directory of the C drive, named "Do Not Move.reg". The block diagram of this batch program is shown in Figure 7.

此批处理程序的源代码如下:The source code for this batch program is as follows:

echo offecho off

reg export"HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell"c:\不随意移动.regreg export "HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell" c:\Do not move at will.reg

pausepause

虽然仅仅是三行代码,但是使用户省去了很多麻烦,节省了大量时间。Although it is only three lines of code, it saves users a lot of trouble and a lot of time.

通过上述注册表修改后,如上所述,本发明存在两个文件,一个是用于导出并保存注册表的批处理程序(.bat),另一个是已经修改好所导出的能够使文件/文件夹被随意移动的注册表文件(.reg),用户只需要两步即可完成操作:运行批处理程序,和双击编辑好的注册表文件,导入即可。在进行备份注册表以及导入注册表操作时,任何分区以及任何盘符下的任何文件/文件夹均不能打开,否则会造成某一分区下文件/文件夹位置移动属性修改失败。批处理程序必须放在桌面或者U盘里运行。必须要等到批处理程序运行结束后,关闭程序对话框,才能进行注册表的导入工作。After being modified by the above-mentioned registry, as mentioned above, there are two files in the present invention, one is a batch program (. Registry files (.reg) whose folders have been moved at will, the user only needs two steps to complete the operation: run the batch program, and double-click the edited registry file to import it. When backing up the registry and importing the registry, any file/folder under any partition and any drive letter cannot be opened, otherwise it will cause the file/folder location move attribute modification under a certain partition to fail. Batch programs must be run on the desktop or in a USB flash drive. You must wait until the batch program finishes running and close the program dialog box before you can import the registry.

需要说明的是:在实际操作证明,在文件/文件夹的所有8种状态模式中,除了在“列表”和“状态”模式下仍然不能自由移动文件/文件夹外,在其余的6种模式“超大图标”、“大图标”、“中等图标”、“小图标”、“详细信息”、“扩展的平铺”下,修改是成功的,这已经能够满足绝大多数人的需求了。如果用户想恢复到系统默认情况,只需要将名叫“不随意移动”的注册表文件(.reg)重新导入到注册表即可(导入方法是直接双击该注册表文件)。What needs to be explained is: in the actual operation, it is proved that in all 8 status modes of files/folders, except in the "list" and "status" modes, files/folders still cannot be moved freely, in the remaining 6 modes Under "Extra Large Icons", "Large Icons", "Medium Icons", "Small Icons", "Detailed Information", and "Extended Tiles", the modification is successful, which can already meet the needs of most people. If the user wants to restore the system to the default state, he only needs to re-import the registry file (.reg) named "Do Not Move" to the registry (the import method is to double-click the registry file).

本发明的实施例中,应用平台优势明显,不仅能够在WIN7-32bit上成功操作,还能在WIN7-64bit上成功修改,无论是哪一台计算机,只要是WIN7系统,就能成功修改。文件小巧。在不压缩的情况下,注册表文件和批处理程序总大小还不超过3M,在使用RAR程序压缩的情况下,总大小不到150KB,使得拷贝和存放变得极其简单和轻松。能够使得众多习惯了Windows XP的用户将操作系统更换成Windows7后,还能继续使用XP系统中的文件/文件夹位置随意移动特性,多了一份亲切感和归属感。能够提高文件/文件夹摆放位置的美观度,提升工作效率。转换轻松。用户能够很容易的从系统默认状态转换到本创作的目标修改状态,也可以轻松的恢复到系统默认状态,即轻轻双击鼠标即可实现。In the embodiment of the present invention, the application platform has obvious advantages. It can not only be successfully operated on WIN7-32bit, but also successfully modified on WIN7-64bit. No matter which computer it is, as long as it is a WIN7 system, it can be successfully modified. The files are small. In the case of no compression, the total size of registry files and batch processing programs does not exceed 3M, and in the case of RAR program compression, the total size is less than 150KB, making copying and storage extremely simple and easy. It can make many users who are accustomed to Windows XP change the operating system to Windows 7, and can continue to use the file/folder location in the XP system to move freely, adding a sense of intimacy and belonging. It can improve the aesthetics of the file/folder placement and improve work efficiency. Conversion is easy. Users can easily switch from the system default state to the target modification state of this creation, and can also easily restore the system default state, that is, double-click the mouse to achieve it.

Claims (3)

1.一种在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法,其特征在于,包括:打开注册表编辑器,分别打开注册表编辑器的主键与子键,直接删除上述目录下的子键Shell,导入已经编辑好的注册表文件。1. A method for freely moving folder/file positions under the WIN7-32/64bit operating system, characterized in that it comprises: opening the Registry Editor, opening the primary key and the subkey of the Registry Editor respectively, directly deleting The subkey Shell in the above directory imports the edited registry file. 2.如权利要求1所述的一种在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法,其特征在于,所述打开注册表编辑器,分别打开注册表编辑器的主键与子键,直接删除上述目录下的子键Shell,导入已经编辑好的注册表文件,包括:2. a kind of method that folder/file position is moved freely under WIN7-32/64bit operating system as claimed in claim 1, it is characterized in that, described opening registry editor, open registry editor respectively Primary key and subkey, directly delete the subkey Shell in the above directory, and import the edited registry file, including: 打开注册表编辑器,定位到如下目录:HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\,打开上述目录下的子键Shell,在HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell目录下新建一个子键,并进行命名;Open the Registry Editor, navigate to the following directory: HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\, open the subkey Shell in the above directory, in HKEY_CURRENT_USER\Software\Classes\ Create a new subkey in the LocalSettings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell directory and name it; 打开新建的子键,在新建两个二进制值FFlags和Mode,其值分别指定为0x43000001和0x4;Open the newly created subkey, and create two new binary values FFlags and Mode, whose values are respectively specified as 0x43000001 and 0x4; 在HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell下再分别新建四个子键;Create four new subkeys under HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell; 然后再分别在这四个新建的子键下新建两个二进制FFlags、Mode,其值分别指定为0x43000001和0x4;Then create two binary FFlags and Mode under the four newly created subkeys, and specify their values as 0x43000001 and 0x4 respectively; 定位到目录HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags,删除以数字命名的项。Navigate to the directory HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell\Bags and delete the item named after the number. 3.如权利要求1所述的一种在WIN7-32/64bit操作系统下使文件夹/文件位置随意移动的方法,其特征在于,还包括:将AllFolders项导出保存,删掉整个HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell目录下的Bags项;3. A method for freely moving folders/files under the WIN7-32/64bit operating system as claimed in claim 1, further comprising: exporting and saving the AllFolders item, and deleting the entire HKEY_CURRENT_USER\Software Bags item in \Classes\LocalSettings\Software\Microsoft\Windows\Shell directory; 然后再在HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell目录下新建一个叫Bags的项,把刚刚导出的AllFolders项直接导入到Bags项中;Then create a new item called Bags in the HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\Shell directory, and import the newly exported AllFolders item directly into the Bags item; 把HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows目录下的Shell子键导出保存;Export and save the Shell subkey in the HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows directory; 保存修改,关闭注册表编辑器。Save the changes and close the Registry Editor.
CN201310718598.3A 2013-12-20 2013-12-20 Method for moving folder/file randomly under WIN7-32/64bit operating system Pending CN103699636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310718598.3A CN103699636A (en) 2013-12-20 2013-12-20 Method for moving folder/file randomly under WIN7-32/64bit operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310718598.3A CN103699636A (en) 2013-12-20 2013-12-20 Method for moving folder/file randomly under WIN7-32/64bit operating system

Publications (1)

Publication Number Publication Date
CN103699636A true CN103699636A (en) 2014-04-02

Family

ID=50361164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310718598.3A Pending CN103699636A (en) 2013-12-20 2013-12-20 Method for moving folder/file randomly under WIN7-32/64bit operating system

Country Status (1)

Country Link
CN (1) CN103699636A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861985A (en) * 2017-10-12 2018-03-30 中国煤炭地质总局九勘探队 A kind of batch processing method for extracting multiple sub-folders similarly hereinafter class file
WO2019001143A1 (en) * 2017-06-30 2019-01-03 武汉斗鱼网络科技有限公司 File directory ordering method, apparatus, electronic device, and computer-readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356915B1 (en) * 1999-02-22 2002-03-12 Starbase Corp. Installable file system having virtual file system drive, virtual device driver, and virtual disks
CN101923553A (en) * 2009-06-11 2010-12-22 鸿富锦精密工业(深圳)有限公司 Installation method of FAT (File Allocation Table) file system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356915B1 (en) * 1999-02-22 2002-03-12 Starbase Corp. Installable file system having virtual file system drive, virtual device driver, and virtual disks
CN101923553A (en) * 2009-06-11 2010-12-22 鸿富锦精密工业(深圳)有限公司 Installation method of FAT (File Allocation Table) file system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LAVENDE的恋4: "http://wenda.so.com/q/1364582840065851", 《360问答》 *
城市蜗牛: "http://blog.sina.com.cn/s/blog_6f3bb20c0100w7j7.html", 《新浪微博》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019001143A1 (en) * 2017-06-30 2019-01-03 武汉斗鱼网络科技有限公司 File directory ordering method, apparatus, electronic device, and computer-readable medium
CN107861985A (en) * 2017-10-12 2018-03-30 中国煤炭地质总局九勘探队 A kind of batch processing method for extracting multiple sub-folders similarly hereinafter class file

Similar Documents

Publication Publication Date Title
US8370835B2 (en) Method for dynamically generating a configuration for a virtual machine with a virtual hard disk in an external storage device
CN101650660B (en) Booting a computer system from central storage
US8719767B2 (en) Utilizing snapshots to provide builds to developer computing devices
US20170068469A1 (en) Remote Shared Virtual Disk Snapshot Creation
US9606748B2 (en) Importing pre-existing data of a prior storage solution into a storage pool for use with a new storage solution
CN110196725A (en) Configuration file management method, apparatus, computer equipment and storage medium
TW200805159A (en) Method and apparatus for fast boot of an operating system
WO2018090529A1 (en) Method and system for mirror image package preparation and application operation
US8166244B2 (en) Emulating a computer system on a removable storage device
JP2008547074A5 (en)
US10592354B2 (en) Configurable recovery states
JP6209861B2 (en) Extensible method and system for stored metadata
TWI511047B (en) Operating system switching method and dual operating system electronic device using the same
CN104866324A (en) Method for constructing portable operating system and portable memorizer
US9672047B1 (en) Systems and methods for accessing a bootable partition on a serial peripheral interface device
CN114830085A (en) Hierarchical compound boot device and file system for operating system booting in a file system virtualization environment
US10514940B2 (en) Virtual application package reconstruction
CN101788913B (en) Computer system with built-in dual concealable operating devices
CN101221510A (en) Method for Reproducing User Configuration Environment on Computer Using Mobile Storage Device
CN103699636A (en) Method for moving folder/file randomly under WIN7-32/64bit operating system
CN111625407B (en) SSD performance test method and related components
TWI559227B (en) Computer system having two built-in operating devices that can be dynamically powered on or powered off
US10061653B1 (en) Method to expose files on top of a virtual volume
US10564894B2 (en) Free space pass-through
US10846011B2 (en) Moving outdated data from a multi-volume virtual disk to a backup storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140402