CN112131187A - Desktop folder creating method and device, storage medium and computer equipment - Google Patents

Desktop folder creating method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN112131187A
CN112131187A CN202010824701.2A CN202010824701A CN112131187A CN 112131187 A CN112131187 A CN 112131187A CN 202010824701 A CN202010824701 A CN 202010824701A CN 112131187 A CN112131187 A CN 112131187A
Authority
CN
China
Prior art keywords
file
information corresponding
icon information
desktop
icon
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
CN202010824701.2A
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.)
Chengdu Anyixun Technology Co ltd
Original Assignee
Chengdu Anyixun Technology 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 Chengdu Anyixun Technology Co ltd filed Critical Chengdu Anyixun Technology Co ltd
Priority to CN202010824701.2A priority Critical patent/CN112131187A/en
Publication of CN112131187A publication Critical patent/CN112131187A/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)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a desktop folder creating method and device, a storage medium and computer equipment, relates to the technical field of information, and mainly aims to improve the file searching efficiency, facilitate user operation and enhance user experience. The method comprises the following steps: acquiring file information corresponding to each file in a specified directory; determining icon information corresponding to each file according to the file type in the file information corresponding to each file; and creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory. The method and the device are suitable for creating the desktop folder.

Description

Desktop folder creating method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for creating a desktop folder, a storage medium, and a computer device.
Background
With the increasing amount of users of windows, the users can frequently operate the windows in work and life, when the users operate the windows, the users usually put a commonly used file into a certain directory of an appointed disc (such as a D disc), when the users need to search the file, the D disc needs to be opened, and the files are finally found by opening a multi-level directory, so that the users need to click for multiple times, the operation is extremely complicated, and an optimization strategy is urgently needed to simplify the complex operation of file searching.
At present, a folder where a user often operates files is usually placed on a desktop, and the user can directly open the folder on the desktop to search for needed files, or establish a shortcut where the user often operates the folder where the files are located and set the shortcut to the desktop. However, all files frequently operated by the user are placed on the desktop, a large amount of space of the C-disc is occupied, the C-disc is prone to crash, and in addition, even if a shortcut of a folder is created on the desktop, the user still needs to click and open the shortcut corresponding to the folder to search the needed files, so that the efficiency of searching the files is low, the user is inconvenient to operate, and the experience is poor.
Disclosure of Invention
The invention provides a method and a device for creating a desktop folder, a storage medium and computer equipment, which mainly aim at improving the file searching efficiency, facilitating the operation of a user and enhancing the user experience.
According to a first aspect of the present invention, there is provided a method for creating a desktop folder, comprising:
acquiring file information corresponding to each file in a specified directory;
determining icon information corresponding to each file according to the file type in the file information corresponding to each file;
and creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
According to a second aspect of the present invention, there is provided a desktop folder creation apparatus, comprising:
the acquisition unit is used for acquiring file information corresponding to each file in the specified directory;
the determining unit is used for determining the icon information corresponding to each file according to the file type in the file information corresponding to each file;
and the generating unit is used for creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
According to a third aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring file information corresponding to each file in a specified directory;
determining icon information corresponding to each file according to the file type in the file information corresponding to each file;
and creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
acquiring file information corresponding to each file in a specified directory;
determining icon information corresponding to each file according to the file type in the file information corresponding to each file;
and creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
Compared with the mode that the file folder where the files frequently operated by the user are placed on the desktop and occupy the storage space of the C disk at present, the desktop file folder creating method, the desktop file folder creating device, the storage medium and the computer equipment can obtain the file information corresponding to each file in the specified directory; determining icon information corresponding to each file according to the file type in the file information corresponding to each file; meanwhile, a file unit frame is created on the desktop, and each icon information is sent to the file unit frame according to the file information corresponding to each file to generate a desktop folder corresponding to the specified directory, so that a user can directly select a target file according to the icon information displayed in the desktop folder by mirroring all files in the windows folder to the desktop folder, the file searching efficiency is effectively improved, in addition, only icons of all files in the windows folder are mirrored to the desktop folder, the storage space of the C disk is not occupied, and the C disk can be effectively prevented from collapsing.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flowchart illustrating a method for creating a desktop folder according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another desktop folder creation method provided by an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for adding or deleting a file according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for modifying a file according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram illustrating a desktop folder creation apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram illustrating another desktop folder creation apparatus provided in an embodiment of the present invention;
fig. 7 shows a physical structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
At present, a folder where a user often operates files is usually placed on a desktop, and the user can directly open the folder on the desktop to search for needed files, or establish a shortcut where the user often operates the folder where the files are located and set the shortcut to the desktop. However, all files frequently operated by the user are placed on the desktop, a large amount of space of the C-disc is occupied, the C-disc is prone to crash, and in addition, even if a shortcut of a folder is created on the desktop, the user still needs to click and open the shortcut corresponding to the folder to search the needed files, so that the efficiency of searching the files is low, the user is inconvenient to operate, and the experience is poor.
In order to solve the above problem, an embodiment of the present invention provides a method for creating a desktop folder, where as shown in fig. 1, the method includes:
101. and acquiring file information corresponding to each file in the specified directory.
Each file is stored in a windows folder in a specified directory, each file may be stored in a windows folder in a C-disc or a D-disc, and file information corresponding to each file includes: file path, file name, whether the file needs to display a thumbnail, file size, file modification time, whether the file is a shortcut, a file corresponding to the shortcut file, and the like. For the embodiment of the present invention is mainly applied to creating a desktop folder, an execution subject of the embodiment of the present invention is a device or an apparatus capable of creating a desktop folder.
For the embodiment of the invention, in order to overcome the defect caused by the fact that the folder where the user often operates the files is arranged on the desktop or the shortcut of the folder is created on the desktop in the prior art, the embodiment of the invention can create the mirror image folder on the desktop, the files are not required to be stored to the C disk for creating the mirror image folder, the storage space of the C disk is not occupied, meanwhile, the mirror image file is specifically a transparent folder suspended on the desktop, the user can directly see the icon information corresponding to each file in the mirror image folder without opening the folder, and the required target file is directly opened, so that the searching efficiency of the files is improved, and the operation of the user is facilitated.
Specifically, when a user wants to map each file in a certain windows folder onto a desktop and create a corresponding mirror image file on the desktop, receiving a mirror image folder creation instruction initiated by the user, where the creation instruction carries an assigned directory corresponding to the windows folder, and acquiring file information corresponding to each file in the windows folder, where the file information corresponding to each file may be acquired by calling an API of a windows system, where the method includes: the method comprises the steps that a file path, a file name, whether the file needs to display a thumbnail or not, the file size, the file modification time, whether the file is a shortcut or not, the file corresponding to the shortcut file and the like are determined, so that the arrangement sequence of all file icons in a desktop image folder is determined according to file information corresponding to all files, and meanwhile, when a user moves a mouse to a certain icon in the image folder, the file information corresponding to the icon can be displayed to the user.
102. And determining icon information corresponding to each file according to the file type in the file information corresponding to each file.
The file type can refer to files such as txt, doc, zip and exe, the icon information corresponding to the files is obtained in different modes for different file types, for example, if the files are files with suffixes such as txt, doc and zip, a preset program registry can be searched according to the file types corresponding to the files, a program corresponding to each file is determined, for example, the program corresponding to the doc file is determined by querying the preset program registry, and then an API of a windows system is called to obtain the icon information corresponding to the doc file in a wps.exe program; if the file is a file with the suffix of exe, the API of the windows system can be directly called to take out the icon information corresponding to the file in the exe. In addition, the file handle SHGetFileInfo corresponding to the file can be directly obtained through the file path corresponding to the file, and then the icon information SHGetImageList corresponding to the file is obtained through the file handle, so that the icon information corresponding to each file in the specified directory can be obtained according to the above manner, and the image folder of the desktop can be created according to the icon information corresponding to each file.
103. And creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
For the embodiment of the present invention, in order to map each file in the specified directory onto the desktop to generate the mirror image folder, a file unit frame is first created on the desktop, the file unit frame is specifically a transparent file unit frame, further, the obtained icon information corresponding to each file is sent to the file unit frame, that is, each icon information is pasted to the file unit frame to generate the mirror image folder of the desktop, meanwhile, in order to suspend the mirror image folder on the windows desktop and only paste the windows desktop under other applications, the window level corresponding to the mirror image folder can be set as the bottom window, since the mirror image folder is transparent, the icon information corresponding to each file can be seen without opening the mirror image folder, which is convenient for the user to find the required file, in addition, a retraction and expansion button is arranged above the mirror image folder, when the mirror image folder is not needed, a user can fold the mirror image folder, so that the desktop looks cleaner and tidier.
Compared with the mode that the folder where the files frequently operated by the user are placed on the desktop and the storage space of the C disk is occupied, the desktop folder creating method provided by the embodiment of the invention can acquire the file information corresponding to each file in the specified directory; determining icon information corresponding to each file according to the file type in the file information corresponding to each file; meanwhile, a file unit frame is created on the desktop, and each icon information is sent to the file unit frame according to the file information corresponding to each file to generate a desktop folder corresponding to the specified directory, so that a user can directly select a target file according to the icon information displayed in the desktop folder by mirroring all files in the windows folder to the desktop folder, the file searching efficiency is effectively improved, in addition, only icons of all files in the windows folder are mirrored to the desktop folder, the storage space of the C disk is not occupied, and the C disk can be effectively prevented from collapsing.
Further, in order to better explain the creation process of the mirror folder, as a refinement and an extension of the foregoing embodiment, an embodiment of the present invention provides another desktop folder creation method, as shown in fig. 2, where the method includes:
201. and acquiring file information corresponding to each file in the specified directory.
The files frequently used by the user in the windows folder are mapped into the mirror image file folder by creating the mirror image file folder on the desktop, and the user can quickly find and open the target file through the file icons displayed in the mirror image file folder. Specifically, when a mirror image folder creation instruction initiated by a user is received, file information corresponding to each file in an appointed directory is obtained, for example, the user appoints the directory to be a computer/D disk/office file, file information corresponding to each file in the office folder is obtained, including a file path, a file name, whether the file needs to display a thumbnail, a file size, a file modification time, whether the file is a shortcut, a file corresponding to the shortcut file, and the like, so that icon information corresponding to each file is mirrored to a desktop according to the file information corresponding to each file, that is, a mirror image folder corresponding to the office file is created on the desktop, and when the file information corresponding to each file is specifically obtained, the file information corresponding to each file can be taken out by calling a windows API.
202. And determining icon information corresponding to each file according to the file type in the file information corresponding to each file.
For the embodiment of the present invention, in order to obtain icon information corresponding to each file in the windows folder, step 203 specifically includes: searching a preset program registry according to the file type in the file information corresponding to each file, and determining a program corresponding to each file; and determining icon information corresponding to each file based on the program corresponding to each file. The file types comprise files such as txt, doc, zip and exe, programs corresponding to different file types are recorded in a preset program registry, and when third-party software accesses, the programs corresponding to different file types are registered in the preset program registry in the windows system.
Further, another implementation manner for acquiring icon information of a file is provided in the embodiments of the present invention, where step 202 specifically includes: determining a file handle corresponding to each file according to a file path in the file information corresponding to each file; and determining icon information corresponding to each file based on the file handle corresponding to each file. For example, the file handle SHGetFileInfo corresponding to the file a is directly obtained through the file path corresponding to the file a, and then the icon information SHGetImageList corresponding to the file a is obtained through the file handle SHGetFileInfo. Therefore, icon information corresponding to each file can be acquired so as to display each icon information in the mirror image folder.
203. And determining the corresponding arrangement sequence of each icon information according to the file information corresponding to each file.
For the embodiment of the present invention, in order to display the obtained icon information in the mirror image folder of the desktop, an arrangement order corresponding to each icon information needs to be determined, so as to display each icon information in the mirror image file according to the arrangement order, specifically, the arrangement order of the icon information corresponding to each file can be determined according to the creation time or the file size corresponding to each file, for example, the files are respectively the file B, the file a and the file C according to the sequence of the creation time of each file, the icon information corresponding to the file B, the icon information corresponding to the file a and the icon information corresponding to the file C are respectively arranged in the arrangement order of the icon from top to bottom or from left to right, and for example, the files are respectively the file C, the file a and the file B according to the sequence of the file size corresponding to each file from large to small, the icon information corresponding to the file C is respectively arranged in the arrangement order of the icon from top to bottom or from left to right, Icon information corresponding to the file A and icon information corresponding to the file B.
204. And sending the icon information to the file unit frame based on the determined arrangement sequence, and generating a desktop folder corresponding to the specified directory.
For the embodiment of the invention, after the arrangement sequence corresponding to each icon information is determined, a transparent unit frame is created on the desktop, the icon information corresponding to each file is sent to the transparent unit frame, and each icon is displayed in the transparent unit frame according to the determined icon arrangement sequence, so that the mirror image folder corresponding to the specified directory is generated. In addition, in the embodiment of the present invention, there are two display modes of the mirror image folder, which are an icon mode and a list mode.
Further, the embodiment of the present invention supports a user to open a file by double-clicking an icon, and the method further includes: responding to clicking of icon information corresponding to a first target file, and determining the icon type of the icon information corresponding to the first target file; and acquiring file parameters corresponding to the first target file based on the determined icon type, and opening the first target file according to the file parameters. For example, when a user clicks icon information corresponding to a file A in the mirror image folder, whether the icon information corresponding to the file A is a shortcut icon is judged, if the icon information corresponding to the file A is the shortcut icon, the shortcut icon is analyzed, a file pointed by the shortcut icon is determined, file parameters such as right lifting and the like are executed, then the analyzed file parameters are transmitted to an API (application program interface) ShellExecuteEx of a windows system, and the API ShellExecuteEx is called to open the file A; if the icon information corresponding to the file a is not a shortcut icon, the file a is directly opened by an API of the windows system, it should be noted that the opening operation may be to open a document or to start an exe program, and a working directory needs to be set before the API is opened, so that it is ensured that data such as a file generated by the program is stored in a corresponding system directory.
Further, the embodiment of the present invention further supports that a user drags a file icon in the mirror image file, and the method further includes: responding to the icon information corresponding to the second target file, and determining the position information before the movement and the position information after the movement of the mouse; calculating the moving distance of the icon information corresponding to the second target file according to the position information before moving and the position information after moving; and moving the icon information corresponding to the second target file based on the calculated moving distance. For example, when a user drags a file a in the mirror image folder, position information before mouse movement and position information after mouse movement are acquired, then a movement distance corresponding to the file is calculated according to the acquired position information before and after mouse movement, and the file a is moved based on the calculated movement distance.
Furthermore, the mirror image folder also supports users to create and break the mirror image folder, and the users can select to mirror a plurality of commonly used folders to the desktop, and the desktop generates a plurality of mirror image folders, so that the users can conveniently operate files in daily life. Meanwhile, when the user right clicks the icon corresponding to the file, the right-click menu corresponding to one or more folders selected by the user is read through the com component IContextMenu, GetUIObjectOf, then the right-click menu is displayed, and the user calls IContextMenu after selecting the corresponding option and executes the user right-click menu command. In addition, the embodiment of the invention also supports the drag and drop of the user between the mirror image folder, the windows desktop and the third-party software.
Further, the mirror image folder in the embodiment of the present invention can monitor the windows folder, and the operations in the windows folder specifically include: adding a file, deleting a file, modifying a file, hiding a file and the like, and making a corresponding response when the mirror image folder monitors the operation of the file in the windows folder, as shown in fig. 3, when a new file exists in the windows folder, the mirror image folder monitors the message, firstly judging whether the new file is the hidden file, if not, acquiring icon information corresponding to the new file, and reordering and displaying the icon information in the mirror image file based on the icon information corresponding to the new file. Similarly, if a file in the windows folder is deleted, the mirror image folder monitors the message, firstly, whether the file exists in the mirror image folder is judged, if so, the icon information corresponding to the file is deleted from the mirror image folder, and the icon information in the mirror image file is sorted again.
Further, the mirror folder responds when a file in the windows folder is modified, and the method comprises the following steps: responding to the modification of the third target file under the specified directory, and determining the modified third target file; acquiring icon information corresponding to the modified third target file; and updating the icon information in the desktop folder according to the icon information corresponding to the modified third target file. Further, the updating the icon information in the desktop folder according to the icon information corresponding to the modified third target file includes: judging whether icon information corresponding to the third target file exists in the desktop file; if the icon information corresponding to the third target file does not exist, adding the modified icon information corresponding to the third target file into the desktop folder; and if the icon information corresponding to the third target file exists, updating the icon information corresponding to the third target file in the desktop folder by using the modified icon information corresponding to the third target file. The third target file may be any one of the mirror files.
For example, as shown in fig. 4, when a user modifies a file a in a windows folder, the mirror image folder monitors a message, first determines whether the file a is modified to be a hidden file, and if the file a is modified to be a hidden file, deletes icon information corresponding to the file a in the mirror image file, and reorders and displays the icon information in the mirror image folder; if the file is not modified into a hidden file, continuously judging whether the file A already exists in the mirror image folder or not, if so, re-acquiring the icon information corresponding to the modified file A, replacing the icon information before the modification of the file A in the mirror image folder, and displaying the icon information in the mirror image folder; and if the file A does not exist, acquiring the icon information corresponding to the modified file A and adding the icon information to the mirror image folder.
Compared with the mode that the file folder where the files frequently operated by the user are placed on the desktop and the storage space of the C disk is occupied, the method for creating the desktop file folder provided by the embodiment of the invention can acquire the file information corresponding to each file in the specified directory; determining icon information corresponding to each file according to the file type in the file information corresponding to each file; meanwhile, a file unit frame is created on the desktop, and each icon information is sent to the file unit frame according to the file information corresponding to each file to generate a desktop folder corresponding to the specified directory, so that a user can directly select a target file according to the icon information displayed in the desktop folder by mirroring all files in the windows folder to the desktop folder, the file searching efficiency is effectively improved, in addition, only icons of all files in the windows folder are mirrored to the desktop folder, the storage space of the C disk is not occupied, and the C disk can be effectively prevented from collapsing.
Further, as a specific implementation of fig. 1, an embodiment of the present invention provides an apparatus for creating a desktop folder, where as shown in fig. 5, the apparatus includes: an acquisition unit 31, a determination unit 32, and a generation unit 33.
The obtaining unit 31 may be configured to obtain file information corresponding to each file in the specified directory. The acquiring unit 31 is a main function module in the present apparatus that acquires file information corresponding to each file in a specified directory.
The determining unit 32 may be configured to determine icon information corresponding to each file according to a file type in the file information corresponding to each file. The determining unit 32 is a main function module, which is also a core module, in the present apparatus, and determines the icon information corresponding to each file according to the file type in the file information corresponding to each file.
The generating unit 33 may be configured to create a file unit frame on the desktop, and send each icon information to the file unit frame according to the file information corresponding to each file, so as to generate a desktop folder corresponding to the specified directory. The generating unit 33 is a main function module that creates a file unit frame on the desktop in the device, and sends each icon information to the file unit frame according to the file information corresponding to each file, and generates a desktop folder corresponding to the specified directory, and is also a core module.
For the embodiment of the present invention, in order to generate the desktop folder corresponding to the specified directory, as shown in fig. 6, the generating unit 33 includes: a determination module 331 and a generation module 332.
The determining module 331 may be configured to determine an arrangement order corresponding to each icon information according to the file information corresponding to each file.
The generating module 332 may be configured to send the icon information to the file unit box based on the determined arrangement order, and generate a desktop folder corresponding to the specified directory.
Further, in order to determine the icon information corresponding to each file, the determining unit 32 includes: a lookup module 321 and a determination module 322.
The searching module 321 may be configured to search a preset program registry according to a file type in the file information corresponding to each file, and determine a program corresponding to each file.
The determining module 322 may be configured to determine icon information corresponding to each file based on a program corresponding to each file.
In a specific application scenario, the determining module 322 may be further configured to determine a file handle corresponding to each file according to a file path in the file information corresponding to each file.
The determining module 322 may be further configured to determine icon information corresponding to each file based on the file handle corresponding to each file.
Further, in order to open the file in the mirror image folder, the apparatus further includes an opening unit 34, and the determining unit 32 may be further configured to determine, in response to clicking on the icon information corresponding to the first target file, an icon type of the icon information corresponding to the first target file.
The opening unit 34 may be configured to obtain a file parameter corresponding to the first target file based on the determined icon type, and open the first target file according to the file parameter.
Further, in order to move the file in the mirror folder, the apparatus further comprises: a calculation unit 35 and a movement unit 36.
The determining unit 32 may be further configured to determine the position information before the movement and the position information after the movement of the mouse in response to the icon information corresponding to the second target file.
The calculating unit 35 may be configured to calculate a moving distance of the icon information corresponding to the second target file according to the pre-movement position information and the post-movement position information.
The moving unit 36 may be configured to move the icon information corresponding to the second target file based on the calculated moving distance.
Further, in order to update the icon information in the desktop folder, the apparatus further includes: and an updating unit 37.
The determining unit 32 may be further configured to determine, in response to modifying the third target file in the specified directory, the modified third target file.
The obtaining unit 31 may be further configured to obtain icon information corresponding to the modified third target file.
The updating unit 37 may be configured to update the icon information in the desktop folder according to the icon information corresponding to the modified third target file.
Further, the updating unit 37 includes a determining module 371, an adding module 372, and an updating module 373, where the determining module 371 may be configured to determine whether the desktop file has icon information corresponding to the third target file.
The adding module 372 may be configured to add the modified icon information corresponding to the third target file to the desktop folder if the icon information corresponding to the third target file does not exist.
The updating module 373 may be configured to update the icon information corresponding to the third target file in the desktop folder by using the modified icon information corresponding to the third target file if the icon information corresponding to the third target file exists.
It should be noted that other corresponding descriptions of the functional modules related to the work efficiency evaluation apparatus provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps: acquiring file information corresponding to each file in a specified directory; determining icon information corresponding to each file according to the file type in the file information corresponding to each file; and creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
Based on the above embodiments of the method shown in fig. 1 and the apparatus shown in fig. 5, an embodiment of the present invention further provides an entity structure diagram of a computer device, as shown in fig. 7, where the computer device includes: a processor 41, a memory 42, and a computer program stored on the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43 such that when the processor 41 executes the program, the following steps are performed: acquiring file information corresponding to each file in a specified directory; determining icon information corresponding to each file according to the file type in the file information corresponding to each file; and creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
By the technical scheme, the file information corresponding to each file in the specified directory can be acquired; determining icon information corresponding to each file according to the file type in the file information corresponding to each file; meanwhile, a file unit frame is created on the desktop, and each icon information is sent to the file unit frame according to the file information corresponding to each file to generate a desktop folder corresponding to the specified directory, so that a user can directly select a target file according to the icon information displayed in the desktop folder by mirroring all files in the windows folder to the desktop folder, the file searching efficiency is effectively improved, in addition, only icons of all files in the windows folder are mirrored to the desktop folder, the storage space of the C disk is not occupied, and the C disk can be effectively prevented from collapsing.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for creating a desktop folder, comprising:
acquiring file information corresponding to each file in a specified directory;
determining icon information corresponding to each file according to the file type in the file information corresponding to each file;
and creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
2. The method according to claim 1, wherein the sending each icon information to the file unit frame according to the file information corresponding to each file, and generating the desktop folder corresponding to the designated directory comprises:
determining the arrangement sequence corresponding to each icon information according to the file information corresponding to each file;
and sending the icon information to the file unit frame based on the determined arrangement sequence, and generating a desktop folder corresponding to the specified directory.
3. The method according to claim 1, wherein the determining the icon information corresponding to each file according to the file type in the file information corresponding to each file comprises:
searching a preset program registry according to the file type in the file information corresponding to each file, and determining a program corresponding to each file;
determining icon information corresponding to each file based on the program corresponding to each file; alternatively, the first and second electrodes may be,
determining a file handle corresponding to each file according to a file path in the file information corresponding to each file;
and determining icon information corresponding to each file based on the file handle corresponding to each file.
4. The method of claim 1, further comprising:
responding to clicking of icon information corresponding to a first target file, and determining the icon type of the icon information corresponding to the first target file;
and acquiring file parameters corresponding to the first target file based on the determined icon type, and opening the first target file according to the file parameters.
5. The method of claim 1, further comprising:
responding to the icon information corresponding to the second target file, and determining the position information before the movement and the position information after the movement of the mouse;
calculating the moving distance of the icon information corresponding to the second target file according to the position information before moving and the position information after moving;
and moving the icon information corresponding to the second target file based on the calculated moving distance.
6. The method of claim 1, further comprising:
responding to the modification of the third target file under the specified directory, and determining the modified third target file;
acquiring icon information corresponding to the modified third target file;
and updating the icon information in the desktop folder according to the icon information corresponding to the modified third target file.
7. The method according to claim 6, wherein the updating the icon information in the desktop folder according to the icon information corresponding to the modified third target file comprises:
judging whether icon information corresponding to the third target file exists in the desktop file;
if the icon information corresponding to the third target file does not exist, adding the modified icon information corresponding to the third target file into the desktop folder;
and if the icon information corresponding to the third target file exists, updating the icon information corresponding to the third target file in the desktop folder by using the modified icon information corresponding to the third target file.
8. An apparatus for creating a desktop folder, comprising:
the acquisition unit is used for acquiring file information corresponding to each file in the specified directory;
the determining unit is used for determining the icon information corresponding to each file according to the file type in the file information corresponding to each file;
and the generating unit is used for creating a file unit frame on the desktop, sending each icon information to the file unit frame according to the file information corresponding to each file, and generating a desktop folder corresponding to the specified directory.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
10. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by the processor.
CN202010824701.2A 2020-08-17 2020-08-17 Desktop folder creating method and device, storage medium and computer equipment Pending CN112131187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010824701.2A CN112131187A (en) 2020-08-17 2020-08-17 Desktop folder creating method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010824701.2A CN112131187A (en) 2020-08-17 2020-08-17 Desktop folder creating method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN112131187A true CN112131187A (en) 2020-12-25

Family

ID=73851657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010824701.2A Pending CN112131187A (en) 2020-08-17 2020-08-17 Desktop folder creating method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112131187A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019513A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Device and method for showing file folder on desktop
CN103150079A (en) * 2013-02-01 2013-06-12 Tcl集团股份有限公司 Application icon management method and device based on Firefox OS (Operation System) platform
CN103176709A (en) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 Method and system of dragging icon file on desktop mirror image screen
CN103885664A (en) * 2012-12-20 2014-06-25 腾讯科技(深圳)有限公司 Desktop file mapping method and desktop file mapping system
CN105205166A (en) * 2015-10-10 2015-12-30 上海斐讯数据通信技术有限公司 Device and method for creating desktop folder

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176709A (en) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 Method and system of dragging icon file on desktop mirror image screen
CN103019513A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Device and method for showing file folder on desktop
CN103885664A (en) * 2012-12-20 2014-06-25 腾讯科技(深圳)有限公司 Desktop file mapping method and desktop file mapping system
CN103150079A (en) * 2013-02-01 2013-06-12 Tcl集团股份有限公司 Application icon management method and device based on Firefox OS (Operation System) platform
CN105205166A (en) * 2015-10-10 2015-12-30 上海斐讯数据通信技术有限公司 Device and method for creating desktop folder

Similar Documents

Publication Publication Date Title
WO2020238815A1 (en) Display control method and device, electronic device and storage medium
US8245148B2 (en) History display apparatus, history display system, history display method, and program
US11416238B2 (en) Interaction method and apparatus
US20060036569A1 (en) Method and apparatus for changing background screen in gui operating system
US9953046B2 (en) Data display device, data display method, and program product
JP2008535084A (en) Method and apparatus for grouping and managing application windows
US20220107712A1 (en) Systems and methods for providing tab previews via an operating system user interface
JP2011503735A (en) Improved user interface
JP2007026210A (en) Tree structure display program, tree structure display method and tree structure display device
US20100057770A1 (en) System and method of file management, and recording medium storing file management program
US20140002328A1 (en) Information processing apparatus, screen display method, and non-transitory computer-readable medium
JP5167850B2 (en) GUI system, GUI generation method, program, and recording medium
JP2012008916A (en) Electronic apparatus, folder creation system, folder creation method, and folder creation program
JP2011198071A (en) Application migration system, migration support device, computer, application migration method, file migration method, and computer program
WO2022194077A1 (en) Application program icon management method and apparatus, and electronic device
EP3367243B1 (en) Information processing system, and information processing method
CN112131187A (en) Desktop folder creating method and device, storage medium and computer equipment
JP3942098B2 (en) Information processing system, information registration information processing apparatus, information search information processing apparatus, information registration information processing method, information search information processing method, program, and recording medium
CN111722776B (en) File interaction method and device and computer readable storage medium
US11074399B2 (en) Information processing apparatus, information processing system, and non-transitory computer readable medium
JP4430908B2 (en) Multi-window display control device and computer system using the same
KR101949727B1 (en) System and operating method for generating a link between objects
CN114816203B (en) Shortcut operation method, device, terminal and storage medium suitable for network disk drive letter
KR100580239B1 (en) Command interpreter having the function of grouping files having same file name extension and program execution method
JP2007047916A (en) Document management device

Legal Events

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

Application publication date: 20201225