CN114356867A - Method and device for opening compressed package file, electronic equipment and storage medium - Google Patents

Method and device for opening compressed package file, electronic equipment and storage medium Download PDF

Info

Publication number
CN114356867A
CN114356867A CN202111650103.9A CN202111650103A CN114356867A CN 114356867 A CN114356867 A CN 114356867A CN 202111650103 A CN202111650103 A CN 202111650103A CN 114356867 A CN114356867 A CN 114356867A
Authority
CN
China
Prior art keywords
file
shortcut
memory
decompressed
compressed
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
CN202111650103.9A
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.)
Zhuhai Baohaowan Technology Co Ltd
Original Assignee
Zhuhai Baohaowan 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 Zhuhai Baohaowan Technology Co Ltd filed Critical Zhuhai Baohaowan Technology Co Ltd
Priority to CN202111650103.9A priority Critical patent/CN114356867A/en
Publication of CN114356867A publication Critical patent/CN114356867A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method and a device for opening a compressed package file, electronic equipment and a storage medium, and relates to the technical field of computers. The invention aims to solve the problem that a user needs to wait for a long time before opening a compressed package file. The method for opening the compressed package file comprises the following steps: reading the compressed packet file into an internal memory in response to a decompression operation instruction of the compressed packet file; performing decompression operation on the compressed packet file in a memory; generating a shortcut of a first file in the compressed packet file; reading the decompressed data of the first file from the memory in response to an opening operation based on the shortcut; and displaying the first file based on the decompressed data of the first file read from the memory. The method is suitable for application scenarios enabling users to open the compressed package files quickly.

Description

Method and device for opening compressed package file, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers. In particular, to a method and an apparatus for opening a compressed package file, an electronic device, and a storage medium.
Background
In general, a compressed package file corresponding to a file is relatively small, so that the transmission efficiency of the file can be improved and the occupied space of the file on a disk can be reduced by using the compressed package file, and therefore a user generally performs file transmission and file storage in a compressed package file manner.
Although there are many methods for opening a compressed package file, these methods are generally based on a 7z source code, the time required for opening the compressed package file is almost the same, and a user needs to wait for a long time before opening the compressed package file.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for opening a compressed package file, an electronic device, and a storage medium, which enable a user to open the compressed package file at a faster speed.
In order to achieve the purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method and an apparatus for opening a compressed package file, an electronic device, and a storage medium, where the method includes: reading the compressed packet file into an internal memory in response to a decompression operation instruction of the compressed packet file; performing decompression operation on the compressed packet file in a memory; generating a shortcut of a first file in the compressed packet file; reading the decompressed data of the first file from the memory in response to an opening operation based on the shortcut; and displaying the first file based on the decompressed data of the first file read from the memory.
According to a specific implementation manner of the embodiment of the present invention, the generating a shortcut of a first file in the compressed packet file includes: generating a shortcut of a first file in the compressed packet file under a first preset directory; after the decompressing operation is performed on the compressed packet file in the memory, the method further includes: and generating a decompressed first file in a second preset directory based on the decompressed data of the first file read from the memory.
According to a specific implementation manner of the embodiment of the present invention, after the first decompressed file is generated in the second preset directory, the method further includes: judging whether the shortcut of the first file is occupied or not; and if the shortcut of the first file is not occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory.
According to a specific implementation manner of the embodiment of the present invention, after determining whether the shortcut of the first file is occupied, the method further includes: and if the shortcut of the first file is occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory after the occupation of the shortcut of the first file is relieved.
According to a specific implementation manner of the embodiment of the present invention, the method further includes: if the shortcut of the first file is occupied, establishing a restarting replacement instruction; and after the system is restarted, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory based on the restart replacement instruction.
In a second aspect, an embodiment of the present invention provides an apparatus for opening a compressed package file, including: the compressed packet file reading module is used for reading the compressed packet file into the memory in response to a decompression operation instruction of the compressed packet file; the decompression module is used for executing decompression operation on the compressed packet file in the memory; the shortcut generation module is used for generating a shortcut of a first file in the compressed packet file; a decompressed data reading module, configured to read decompressed data of the first file from the memory in response to an opening operation based on the shortcut; and the file display module is used for displaying the first file based on the decompressed data of the first file read from the memory.
According to a specific implementation manner of the embodiment of the invention, the shortcut generation module is specifically configured to generate a shortcut of a first file in the compressed packet file under a first preset directory; after the decompression operation is performed on the compressed packet file in the memory, the decompression module is further configured to generate a decompressed first file in a second preset directory based on the decompressed data of the first file read from the memory.
According to a specific implementation manner of the embodiment of the invention, the method further comprises a shortcut replacing module for judging whether the shortcut of the first file is occupied; and if the shortcut of the first file is not occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory.
According to a specific implementation manner of the embodiment of the present invention, the shortcut replacing module is further configured to replace the shortcut of the first file with the decompressed first file generated in the second preset directory after the occupation of the shortcut of the first file is released if the shortcut of the first file is occupied.
According to a specific implementation manner of the embodiment of the invention, the method further comprises a restart replacement module, which is used for establishing a restart replacement instruction if the shortcut of the first file is occupied; and after the system is restarted, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory based on the restart replacement instruction.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is configured to execute the method for opening the compressed package file according to any one of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the method for opening a compressed package file according to any one of the foregoing first aspects.
According to the method, the device, the electronic equipment and the storage medium for opening the compressed packet file, which are provided by the embodiment of the invention, the compressed packet file is read into the memory, the decompressed data of the compressed packet file is obtained in the memory, and the shortcut capable of accessing the decompressed data in the memory is established, so that a user can open the first file by executing the opening operation on the shortcut. Therefore, compared with the method that the decompressed data in the memory is stored locally to generate the target file, the user opens the target file by executing the opening operation on the target file, and the decompression method of the compressed file provided by the embodiment of the invention can enable the user to open the compressed packet file at a higher speed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an opening method of a compressed package file according to an embodiment of the present invention;
FIG. 2 is a block diagram of an opening apparatus for compressing a package file according to an embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, an opening method, an opening device, an electronic device, and a storage medium for a compressed package file according to embodiments of the present invention include:
s110, responding to the decompression operation instruction of the compressed packet file, and reading the compressed packet file into a memory.
The compressed package file may be stored in a hard disk or in a U-disk.
The reading of the compressed packet file into the memory may be a call of an api (application Programming interface) interface to read the compressed packet file into the memory. After the compressed packet file is read into the memory, the data of the compressed packet file in the memory can be operated at a higher speed.
And S120, decompressing the compressed packet file in the memory.
And performing decompression operation on the compressed packet file in the memory, so that decompressed data of the compressed packet file can be obtained, wherein the decompressed data is data of an original file compressed into the compressed packet file.
And S130, generating a shortcut of the first file in the compressed packet file.
And a corresponding relation exists between the shortcut of the first file and the decompressed data of the first file in the memory, and the corresponding relation is stored in the memory. For example, the correspondence may be established by creating the same identifier between the shortcut of the first file and the decompressed data of the first file in the memory.
S140, in response to the opening operation based on the shortcut, reading the decompressed data of the first file from the memory.
Compared with the first file generated after the decompression is completed, the file size of the shortcut of the first file is very small. But the decompressed data of the first file can be read from the memory by opening the shortcut of the first file based on the corresponding relationship between the shortcut of the first file and the first file. Therefore, the user can open the compressed package file at a higher speed.
S150, displaying the first file based on the decompressed data of the first file read from the memory.
For example, the first file is a DOCX file, and the decompressed data of the first file in the memory is output to a corresponding application program, for example, a word, so that the first file can be displayed.
According to the method for opening the compressed packet file, provided by the embodiment of the invention, the compressed packet file is read into the memory, the decompressed data of the compressed packet file is obtained in the memory, and the shortcut capable of accessing the decompressed data in the memory is established, so that a user can open the first file by executing the opening operation on the shortcut. Therefore, compared with the method that the decompressed data in the memory is stored locally to generate the target file, the user opens the target file by executing the opening operation on the target file, and the decompression method of the compressed file provided by the embodiment of the invention can enable the user to open the compressed packet file at a higher speed.
In an embodiment, the generating a shortcut to a first file in the compressed package file includes: generating a shortcut of a first file in the compressed packet file under a first preset directory; after the decompressing operation is performed on the compressed packet file in the memory, the method further includes: and generating a decompressed first file in a second preset directory based on the decompressed data of the first file read from the memory.
The method includes the steps that a shortcut of a first file in a compressed packet file can be generated in a first preset directory, and meanwhile, a decompressed first file is generated in a second preset directory based on decompressed data of the first file read from a memory.
The first preset directory is a storage directory set by a user before responding to a decompression operation instruction of the compressed packet file; it is to be understood that the method may be performed by an application program, so that the second preset directory may be a storage directory which is set by default in the application program before responding to an operation instruction for decompressing the compressed packet file. The first preset directory and the second preset directory are in different positions on the local hard disk, and the second preset directory does not need to be displayed to a user.
Because there is generally only one corresponding decompressed file generated by the same file in the compressed packet, the embodiment of the present application can enable the same file in the compressed packet to simultaneously generate the shortcut and the decompressed file thereof, for example, in the process of performing the decompression operation on the compressed packet file, the shortcut and the decompressed first file of the first file in the compressed packet file can be obtained, so the shortcut of the first file is stored in the first preset directory, the decompressed first file is stored in the second preset directory, and only the first preset directory in which the shortcut of the corresponding file can be previewed by the user through the opening operation is displayed to the user. Therefore, the method not only accords with the use habit of the user, but also does not influence the opening process of the compressed package file, and can provide good user experience.
The second preset directory is not displayed to the user, and after the decompressed first file is generated under the second preset directory, the decompressed data of the compressed packet file in the memory can be emptied, and if the decompressed data of the compressed packet file in the memory is emptied before the decompressed first file is generated under the second preset directory, the first file generated under the second preset directory is incomplete, so that the first file generated under the second preset directory is wrong, that is, substantially, the embodiment of the application provides an opening mode for generating the compressed packet file of the decompressed file while displaying the compressed packet file. Therefore, the method for opening the compressed package file provided by the embodiment of the application needs to send the prompt message to the user, and the operation of the embodiment of the application can be stopped when the prompt message of completing decompression is received.
Since the size of the memory is generally 4GB, 8GB, 16GB, and the like, and compared with the size of the hard disk, the size of the memory is smaller, and if too many compressed packet files are introduced into the memory, the normal use of the electronic device may be affected, so in the embodiment of the present application, a file size threshold may be preset, for example, the threshold may be 150mb (mbyte). If the size of the compressed packet file is smaller than the threshold value, reading all data of the compressed packet file into a memory, and generating a shortcut of a first file in the compressed packet file under a first preset directory; and if the size of the compressed packet file is larger than the threshold value, directly generating a decompressed first file under a first preset directory.
Generally, the IO read-write speed of the hard disk is constant, and each IO read-write operation needs to consume time, so that all data of the compressed packet file is read into the memory to execute the decompression operation, a shortcut of the first file is established for the first file obtained in the memory, the data of the first file in the memory is directly displayed through the opening operation of the shortcut of the first file, the IO operation of storing the data of the first file in the memory on the local hard disk is reduced, and the user can open the compressed packet file at a higher speed.
In an embodiment, after generating the decompressed first file under the second preset directory, the method further includes: judging whether the shortcut of the first file is occupied or not; and if the shortcut of the first file is not occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory.
By obtaining the file attribute of the shortcut of the first file, whether the shortcut of the first file is occupied can be judged.
The decompressed first file can be copied or cut and moved to a first preset directory by calling Windows API, and the shortcut of the first file in the first preset directory is deleted, so that the shortcut of the first file is replaced by the first file.
In an embodiment, after determining whether the shortcut of the first file is occupied, the method further includes: and if the shortcut of the first file is occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory after the occupation of the shortcut of the first file is relieved.
In one embodiment, the occupancy release determination interval may be preset, for example, set to 5 minutes. Thus, when the shortcut of the first file is confirmed to be occupied, timing is started, after 5 minutes, the file attribute of the shortcut of the first file is obtained again, whether the shortcut of the first file is occupied or not is judged, and the occupation of the shortcut of the first file is relieved until the fact that the shortcut of the first file is occupied is confirmed.
In another embodiment, the method further comprises: if the shortcut of the first file is occupied, establishing a restarting replacement instruction; and after the system is restarted, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory based on the restart replacement instruction.
The restart replacement command is that after the system is restarted, a deletion command is executed on the shortcut of the first file, and then the decompressed first file is moved to the first preset directory, so that the shortcut of the first file is replaced by the decompressed first file.
The Windows API function MoveFileEx () may be called by the parameter move _ DELAY _ explicit _ REBOOT, and a delete DELAY operation may be registered in the system for the shortcut of the first file. And the registered record is placed under key values of registration tables HKEY _ LOCAL _ MACHINE \ SYSTEM \ Current Control \ SessionManager \ PendingFileRenaneactions and PendingFileRenaneactions 2. Thus, after the system is restarted, the sms.exe reads and analyzes the registry key values, and then the deletion command can be executed on the shortcut of the first file.
Compared with the method that the attribute of the shortcut file of the first file is acquired after the preset time interval until the occupation of the shortcut of the first file is determined to be relieved, the operation of frequently acquiring the file attribute of the shortcut of the first file can be avoided by adopting the restart replacement command, so that the consumption of hardware resources is reduced, and good user experience is provided.
Example two
Referring to fig. 2, an embodiment of the present invention provides an apparatus for opening a compressed package file, including: the compressed packet file reading module is used for reading the compressed packet file into the memory in response to a decompression operation instruction of the compressed packet file; the decompression module is used for executing decompression operation on the compressed packet file in the memory; the shortcut generation module is used for generating a shortcut of a first file in the compressed packet file; a decompressed data reading module, configured to read decompressed data of the first file from the memory in response to an opening operation based on the shortcut; and the file display module is used for displaying the first file based on the decompressed data of the first file read from the memory.
According to the opening device for the compressed packet file, provided by the embodiment of the invention, the compressed packet file is read into the memory, the decompressed data of the compressed packet file is obtained in the memory, and the shortcut capable of accessing the decompressed data in the memory is established, so that a user can open the first file by executing the opening operation on the shortcut. Therefore, compared with the method that the decompressed data in the memory is stored locally to generate the target file, the user opens the target file by executing the opening operation on the target file, and the decompression method of the compressed file provided by the embodiment of the invention can enable the user to open the compressed packet file at a higher speed.
In an embodiment, the shortcut generation module is specifically configured to generate a shortcut of a first file in the compressed packet file in a first preset directory; after the decompression operation is performed on the compressed packet file in the memory, the decompression module is further configured to generate a decompressed first file in a second preset directory based on the decompressed data of the first file read from the memory.
The first preset directory is a storage directory set by a user before responding to a decompression operation instruction of the compressed packet file; the second preset directory is a storage directory set by the embodiment of the application before responding to the decompression operation instruction on the compressed packet file. The first preset directory and the second preset directory are in different positions on the local hard disk, and the second preset directory is not displayed to a user.
Because there is only one corresponding decompressed file generated by the same file in the compressed packet, the embodiment of the present application can enable the same file in the compressed packet to simultaneously generate the shortcut and the decompressed file thereof, for example, in the process of performing the decompression operation on the compressed packet file, the shortcut and the decompressed first file of the first file in the compressed packet file can be obtained. Therefore, the shortcut of the first file is stored in the first preset directory, the decompressed first file is stored in the second storage directory, and only the first preset directory in which the shortcut of the corresponding file can be previewed by the user through the opening operation is displayed to the user. Therefore, the method not only accords with the use habit of the user, but also does not influence the opening process of the compressed package file, and can provide good user experience.
In an embodiment, the system further comprises a shortcut replacing module, configured to determine whether the shortcut of the first file is occupied; and if the shortcut of the first file is not occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory.
By obtaining the file attribute of the shortcut of the first file, whether the shortcut of the first file is occupied can be judged.
The decompressed first file can be copied or cut and moved to a first preset directory by calling Windows API, and the shortcut of the first file in the first preset directory is deleted, so that the shortcut of the first file is replaced by the first file.
In an embodiment, the shortcut replacing module is further configured to replace the shortcut of the first file with a decompressed first file generated in the second preset directory after the occupation of the shortcut of the first file is released if the shortcut of the first file is occupied.
The embodiment of the application may preset the occupancy release determination interval, for example, set the occupancy release determination interval to be 5 minutes. Thus, when the shortcut of the first file is confirmed to be occupied, timing is started, after 5 minutes, the file attribute of the shortcut of the first file is obtained again, whether the shortcut of the first file is occupied or not is judged, and the occupation of the shortcut of the first file is relieved until the fact that the shortcut of the first file is occupied is confirmed.
In an embodiment, the system further includes a restart replacement module, configured to establish a restart replacement instruction if the shortcut of the first file is occupied; and after the system is restarted, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory based on the restart replacement instruction.
The restart replacement command is that after the system is restarted, a deletion command is executed on the shortcut of the first file, and then the decompressed first file is moved to the first preset directory, so that the shortcut of the first file is replaced by the decompressed first file.
Compared with the method that the attribute of the shortcut file of the first file is acquired after the preset time interval until the occupation of the shortcut of the first file is determined to be relieved, the operation of frequently acquiring the file attribute of the shortcut of the first file can be avoided by adopting the restart replacement command, so that the consumption of hardware resources is reduced, and good user experience is provided.
EXAMPLE III
Referring to fig. 3, an embodiment of the present invention provides an electronic device, including: the device comprises a shell 301, a processor 302, a memory 303, a circuit board 304 and a power circuit 305, wherein the circuit board 304 is arranged inside a space enclosed by the shell 301, and the processor 302 and the memory 303 are arranged on the circuit board 304; a power supply circuit 305 for supplying power to each circuit or device of the electronic apparatus; memory 303 is used to store executable program code; the processor 302 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 303, so as to execute the display method of the system screensaver wallpaper described in the first embodiment.
For a specific execution process of the above steps by the processor 302 and further steps executed by the processor 302 by running the executable program code, reference may be made to the description of the foregoing embodiments, which are not described herein again.
The above electronic devices exist in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing computing service, the server comprises a processor 302, a hard disk, a memory, a system bus and the like, the server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because high-reliability service needs to be provided.
(5) And other electronic equipment with data interaction function.
Example four
An embodiment of the present invention provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the method for displaying system screen protection wallpaper according to any one of the foregoing embodiments, so that corresponding technical effects may also be achieved, which has been described in detail above and will not be described herein again.
It should be noted that, in this document, the emphasis points of the solutions described in the embodiments are different, but there is a certain correlation between the embodiments, and in understanding the solution of the present invention, the embodiments may be referred to each other; moreover, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for opening a compressed package file is characterized by comprising the following steps:
reading the compressed packet file into an internal memory in response to a decompression operation instruction of the compressed packet file;
performing decompression operation on the compressed packet file in a memory;
generating a shortcut of a first file in the compressed packet file;
reading the decompressed data of the first file from the memory in response to an opening operation based on the shortcut;
and displaying the first file based on the decompressed data of the first file read from the memory.
2. The method for opening a compressed package file according to claim 1, wherein the generating a shortcut to a first file in the compressed package file comprises:
generating a shortcut of a first file in the compressed packet file under a first preset directory;
after the decompressing operation is performed on the compressed packet file in the memory, the method further includes:
and generating a decompressed first file in a second preset directory based on the decompressed data of the first file read from the memory.
3. The method for opening a compressed package file according to claim 2, wherein after the first decompressed file is generated under the second preset directory, the method further comprises:
judging whether the shortcut of the first file is occupied or not;
and if the shortcut of the first file is not occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory.
4. The method of opening a compressed package file according to claim 3, further comprising:
and if the shortcut of the first file is occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory after the occupation of the shortcut of the first file is relieved.
5. The method of opening a compressed package file according to claim 3, further comprising:
if the shortcut of the first file is occupied, establishing a restarting replacement instruction;
and after the system is restarted, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory based on the restart replacement instruction.
6. An opening apparatus for compressing a package file, comprising:
the compressed packet file reading module is used for reading the compressed packet file into the memory in response to a decompression operation instruction of the compressed packet file;
the decompression module is used for executing decompression operation on the compressed packet file in the memory;
the shortcut generation module is used for generating a shortcut of a first file in the compressed packet file;
the decompressed data reading module is used for responding to the opening operation based on the shortcut and reading the decompressed data of the first file from the memory;
and the file display module is used for displaying the first file based on the decompressed data of the first file read from the memory.
7. Opening device of a compressed package file according to claim 6, characterized in that the shortcut generation module is specifically adapted to
Generating a shortcut of a first file in the compressed packet file under a first preset directory;
wherein, after the decompression operation is performed on the compressed packet file in the memory, the decompression module is further configured to decompress the compressed packet file
And generating a decompressed first file in a second preset directory based on the decompressed data of the first file read from the memory.
8. The apparatus for opening a compressed package file according to claim 7, further comprising a shortcut replacement module for replacing a shortcut
Judging whether the shortcut of the first file is occupied or not;
and if the shortcut of the first file is not occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory.
9. The device for opening a compressed package file according to claim 8, wherein the shortcut replacement module is further configured to
And if the shortcut of the first file is occupied, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory after the occupation of the shortcut of the first file is relieved.
10. The apparatus for opening a compressed package file according to claim 9, further comprising a restart replacement module for replacing the compressed package file
If the shortcut of the first file is occupied, establishing a restarting replacement instruction;
and after the system is restarted, replacing the shortcut of the first file by using the decompressed first file generated under the second preset directory based on the restart replacement instruction.
CN202111650103.9A 2021-12-29 2021-12-29 Method and device for opening compressed package file, electronic equipment and storage medium Pending CN114356867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111650103.9A CN114356867A (en) 2021-12-29 2021-12-29 Method and device for opening compressed package file, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111650103.9A CN114356867A (en) 2021-12-29 2021-12-29 Method and device for opening compressed package file, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114356867A true CN114356867A (en) 2022-04-15

Family

ID=81103805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111650103.9A Pending CN114356867A (en) 2021-12-29 2021-12-29 Method and device for opening compressed package file, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114356867A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116860183A (en) * 2023-09-04 2023-10-10 北京安天网络安全技术有限公司 Data storage method, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116860183A (en) * 2023-09-04 2023-10-10 北京安天网络安全技术有限公司 Data storage method, electronic equipment and storage medium
CN116860183B (en) * 2023-09-04 2023-12-01 北京安天网络安全技术有限公司 Data storage method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107832099B (en) Method and device for client version compatibility and storage medium
US20180241702A1 (en) Method and device for displaying message, and electronic device
CN106250182B (en) File processing method and device and electronic equipment
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
CN106776908B (en) Data cleaning method and device and terminal
CN114356867A (en) Method and device for opening compressed package file, electronic equipment and storage medium
CN111694585A (en) Method, system, terminal and storage medium for replacing system partition file
CN110652728A (en) Game resource management method and device, electronic equipment and storage medium
CN105373447A (en) Data backup method and device and electronic equipment
CN111782294A (en) Application program running method and device, electronic equipment and storage medium
KR20190021773A (en) Electronic device and method for operating data of the same
CN114296854B (en) Desktop wallpaper display method and device, electronic equipment and readable storage medium
CN114339404A (en) Display method and device of screen protection wallpaper in windows system and electronic equipment
CN114095533B (en) Cloud game account login method and device, computer equipment and storage medium
CN111880896B (en) Method and device for rapidly restoring container and running state data
CN114339325B (en) Multi-engine dynamic wallpaper playing method and device based on android system
CN111399926A (en) Method and device for downloading starting program
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN112036133B (en) File storage method and device, electronic equipment and storage medium
CN114968456A (en) Method and device for controlling terminal
CN113050936A (en) Front-end data processing method and device based on integrated development environment
CN109542531B (en) File layout adjustment method and device
CN109522187B (en) Method and device for quickly extracting state information
CN108958849B (en) Method, device, storage medium and mobile terminal for acquiring current Activity object
CN112817622A (en) BIOS refreshing method and device, electronic equipment and storage medium

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