Method, device and equipment for processing batch files, medium and program product

The method and device enable efficient batch processing of files with different types by determining and applying type-specific instructions, enhancing modification efficiency and display in a batch processing page.

CN119106013APending Publication Date: 2024-12-10CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411298478.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

Existing technologies are inefficient in modifying multiple files of different types simultaneously, requiring manual operation and re-debugging for each file type, leading to low modification efficiency.

Method used

A method and device for processing batch files that determine target processing instructions based on file types and modify files accordingly, displaying results in a batch processing page, supporting simultaneous modification of files with different types.

Benefits of technology

Enhances file modification efficiency by allowing batch processing of files with different types, improving interaction and display for timely tracking of processing status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119106013A_ABST
    Figure CN119106013A_ABST
Patent Text Reader

Abstract

The invention provides a method, device and equipment for processing batch files, a storage medium and a program product, which can be applied to the technical field of file processing and financial science and technology. The method comprises the steps that it is detected that a modification request control for multiple target files in a file batch processing page is triggered, respective file types and file modification information of the multiple target files are obtained, and the multiple target files at least comprise two target files of different file types; according to the respective file types of the multiple target files, target processing instructions matched with the multiple target files are determined from a processing instruction set, the processing instruction set comprises multiple processing instructions, and the multiple processing instructions are used for processing files of different file types; according to the respective file modification information of the plurality of target files, modifying the target files by using target processing instructions matched with the plurality of target files; and displaying the modification results of the plurality of target files in the file batch processing page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of file processing and financial technology, and specifically to a method, device, equipment, medium and program product for processing batch files. Background Art

[0002] The development of information technology and electronic technology has improved the convenience of our work and life. For example, various types of files can be used to improve the convenience of work and life. However, with the rapid development of information technology, the number of files of various types is also increasing, and the problem of unified modification of files is inevitable. However, the methods of modifying different types of files in related technologies are less efficient. Summary of the invention

[0003] In view of the above problems, the present disclosure provides a method, apparatus, device, medium and program product for processing batch files.

[0004] According to a first aspect of the present disclosure, a method for processing batch files is provided, the method comprising:

[0005] In response to detecting that a modification request control for multiple target files in a file batch processing page is triggered, obtaining respective file types and file modification information of the multiple target files, wherein the multiple target files include at least two target files of different file types;

[0006] Determining target processing instructions matching each of the target files from a processing instruction set according to the respective file types of the target files, wherein the processing instruction set includes a plurality of processing instructions, and the plurality of processing instructions are used to process files of different file types;

[0007] According to the file modification information of each of the plurality of target files, modify the target files using the target processing instructions that match each of the plurality of target files; and

[0008] The modification results of the above-mentioned target files are displayed in the above-mentioned file batch processing page.

[0009] According to an embodiment of the present disclosure, determining target processing instructions matching each of the plurality of target files from a processing instruction set according to the respective file types of the plurality of target files includes:

[0010] According to the respective file types of the plurality of target files, determining a processing instruction identifier matching each of the target files from a file type matching relationship set, wherein the file type matching relationship set represents a corresponding relationship between the file type of the target file and the processing instruction identifier; and

[0011] According to the processing instruction identifier matched with each of the target files, the target processing instructions matched with each of the plurality of target files are determined from the processing instruction set.

[0012] According to an embodiment of the present disclosure, the above-mentioned method of modifying the above-mentioned target files according to the file modification information of each of the above-mentioned target files using the above-mentioned target processing instructions that match each of the above-mentioned target files includes:

[0013] According to the file modification information of each of the plurality of target files, a processing type, target content and modification content matching each of the target files are obtained;

[0014] Determining a position to be modified of each of the target files by using the target processing instructions and the target contents that match the target files; and

[0015] According to the above modification content, a processing operation matching the above processing type is performed at the above position to be modified.

[0016] According to an embodiment of the present disclosure, the above-mentioned processing type includes at least one of a replacement type, a deletion type and a new addition type;

[0017] Among them, the above-mentioned processing operation matching the above-mentioned processing type is performed at the above-mentioned position to be modified according to the above-mentioned modification content, including:

[0018] In the case where the processing type is the replacement type, the target content at the to-be-modified position replaces the modified content;

[0019] In the case where the processing type is the deletion type, deleting the target content at the position to be modified; and

[0020] When the above processing type is the above newly added type, the above modified content is added to the above position to be modified.

[0021] According to an embodiment of the present disclosure, the file modification information includes a target storage path, and the method further includes:

[0022] generating, according to the respective file types of the plurality of target files, modified files corresponding to the plurality of modified target files, to obtain a plurality of modified files; and

[0023] Storing the plurality of modified files in the target storage path;

[0024] The modification results of the above target files are displayed in the above file batch processing page, including:

[0025] The modification results of the plurality of target files are displayed in the file batch processing page according to the target storage path.

[0026] According to an embodiment of the present disclosure, in response to detecting that a modification request control for multiple target files in a file batch processing page is triggered, obtaining respective file types and file modification information of the multiple target files includes:

[0027] In response to detecting a file upload operation for a plurality of target files in the file batch processing page, acquiring the plurality of target files;

[0028] Determining the file types of the plurality of target files according to their respective file names; and

[0029] In response to detecting an upload operation of modification information for a plurality of target files in the file batch processing page, file modification information of each of the plurality of target files is obtained.

[0030] According to an embodiment of the present disclosure, the above-mentioned file type includes at least one of an electronic text type, a spreadsheet type, and a plain text type.

[0031] A second aspect of the present disclosure provides a device for processing batch files, the device comprising:

[0032] an acquisition module, configured to acquire respective file types and file modification information of the plurality of target files in response to detecting that a modification request control for the plurality of target files in the file batch processing page is triggered, wherein the plurality of target files include at least two target files of different file types;

[0033] a determination module, configured to determine, according to the file types of the plurality of target files, a target processing instruction matching each of the plurality of target files from a processing instruction set, wherein the processing instruction set includes a plurality of processing instructions, and the plurality of processing instructions are used to process files of different file types;

[0034] a modification module, configured to modify the target files according to the file modification information of the target files and using the target processing instructions that match the target files; and

[0035] The display module is used to display the modification results of the plurality of target files in the batch processing page of the files.

[0036] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0037] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.

[0038] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.

[0039] According to an embodiment of the present disclosure, by obtaining the respective file types and file modification information of multiple target files, and according to the respective file types of the multiple target files, determining the target processing instructions that match the respective multiple target files from the processing instruction set, modifying the target files according to the respective file modification information of the multiple target files using the target processing instructions that match the respective multiple target files, and displaying the modification results of the multiple target files in the file batch processing page, batch processing of target files of different file types can be achieved, thereby improving the file modification efficiency, and interaction and display on the file batch processing page makes it easy to timely grasp the processing degree of the target files. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0041] Figure 1 The application scenario diagram of the method, apparatus, device, medium and program product for processing batch files according to the embodiment of the present disclosure is schematically shown;

[0042] Figure 2 A flowchart of a method for processing batch files according to an embodiment of the present disclosure is schematically shown;

[0043] Figure 3 A flowchart of a method for processing batch files according to another embodiment of the present disclosure is schematically shown;

[0044] Figure 4 A flowchart of a method for processing batch files according to another embodiment of the present disclosure is schematically shown;

[0045] Figure 5 A structural block diagram of a device for processing batch files according to an embodiment of the present disclosure is schematically shown; and

[0046] Figure 6 A block diagram of an electronic device suitable for implementing a method for processing batch files according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0047] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0048] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0049] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0050] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0051] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0052] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0053] In the related art, when faced with the situation of modifying many files at the same time, it is usually necessary to manually open each file one by one, and then find the content to be modified one by one and modify it to the required content. Therefore, it is proposed to modify the file through a program. However, in the related art, the program can only be used to modify the files of the same type. For different types of files, the program cannot be reused, and the program needs to be modified and re-debugged, which has a low modification efficiency.

[0054] In view of this, an embodiment of the present disclosure provides a method for processing batch files, including, in response to detecting that a modification request control for multiple target files in a file batch processing page is triggered, obtaining respective file types and file modification information of the multiple target files, wherein the multiple target files include at least two target files of different file types; determining, according to the respective file types of the multiple target files, target processing instructions matching each of the multiple target files from a processing instruction set, wherein the processing instruction set includes multiple processing instructions, and the multiple processing instructions are used to process files of different file types; modifying the target files according to the respective file modification information of the multiple target files, using target processing instructions matching each of the multiple target files; and displaying the modification results of the multiple target files in the file batch processing page.

[0055] Figure 1 The application scenario diagram of the method, apparatus, device, medium and program product for processing batch files according to the embodiments of the present disclosure is schematically shown.

[0056] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0057] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0058] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0059] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0060] It should be noted that the method for processing batch files provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the apparatus for processing batch files provided in the embodiment of the present disclosure can generally be set in the server 105. The method for processing batch files provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the apparatus for processing batch files provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0061] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0062] Figure 2 The flowchart of the method for processing batch files according to the embodiment of the present disclosure is schematically shown.

[0063] like Figure 2 As shown, the method for processing batch files in this embodiment includes operations S210 to S240.

[0064] In operation S210, in response to detecting that a modification request control for multiple target files in a file batch processing page is triggered, respective file types and file modification information of the multiple target files are obtained, wherein the multiple target files include at least two target files of different file types.

[0065] In operation S220, target processing instructions matching the plurality of target files are determined from a processing instruction set according to the respective file types of the plurality of target files, wherein the processing instruction set includes a plurality of processing instructions for processing files of different file types.

[0066] In operation S230, the target files are modified using target processing instructions that match the respective target files according to the file modification information of the respective target files.

[0067] In operation S240 , the modification results of the plurality of target files are displayed in the file batch processing page.

[0068] According to an embodiment of the present disclosure, the file batch processing page may be a pre-set page for processing batch files. The file storage address of the target file and the file modification information of the target file may be added to the file batch processing page. After adding, the user may click the modification request control to initiate a modification request. The user may also fill in the modification items that need to be performed on multiple target files in the file batch processing page to generate file modification information.

[0069] According to an embodiment of the present disclosure, the file modification information may be information on how to modify multiple target files. The multiple target files may be files of different file types.

[0070] According to an embodiment of the present disclosure, the file types of multiple target files may be acquired from a file batch processing page, and the file types may be determined according to the file names of the target files.

[0071] According to an embodiment of the present disclosure, the processing instruction may be a preset program for a file of a corresponding file type. Each processing instruction in the processing instruction set may correspond to a file of a file type, and the corresponding target processing instruction may be determined from the processing instruction set according to the file type of the target file.

[0072] According to an embodiment of the present disclosure, the target processing instruction can determine the content that needs to be modified in the target file according to the file modification information, thereby modifying the target file.

[0073] According to an embodiment of the present disclosure, after the target file is modified, the modification result can be displayed in the file batch processing page.

[0074] According to an embodiment of the present disclosure, by obtaining the respective file types and file modification information of multiple target files, and according to the respective file types of the multiple target files, determining the target processing instructions that match the respective multiple target files from the processing instruction set, modifying the target files according to the respective file modification information of the multiple target files using the target processing instructions that match the respective multiple target files, and displaying the modification results of the multiple target files in the file batch processing page, batch processing of target files of different file types can be achieved, thereby improving the file modification efficiency, and interaction and display on the file batch processing page makes it easy to timely grasp the processing degree of the target files.

[0075] According to an embodiment of the present disclosure, target processing instructions that match each of the multiple target files are determined from a processing instruction set based on their respective file types, including: determining a processing instruction identifier that matches each target file from a file type matching relationship set based on their respective file types; and determining a target processing instruction that matches each of the multiple target files from the processing instruction set based on the processing instruction identifier that matches each target file.

[0076] According to an embodiment of the present disclosure, the file type matching relationship set represents the corresponding relationship between the file type of the target file and the processing instruction identifier.

[0077] According to an embodiment of the present disclosure, a processing instruction identifier can be used to identify a processing instruction. According to the file types of each of the multiple target files, the processing instruction identifiers matching each of the multiple target files can be determined from a file type matching relationship set, thereby identifying target processing instructions matching each of the multiple target files from the processing instruction set according to the processing instruction identifiers matching each of the multiple target files.

[0078] According to an embodiment of the present disclosure, the file type includes at least one of an electronic text type, a spreadsheet type, and a plain text type.

[0079] According to an embodiment of the present disclosure, a file of electronic text type may correspond to a processing instruction for processing electronic text, a file of spreadsheet type may correspond to a processing instruction for processing spreadsheet, and a file of plain text type may correspond to a processing instruction for processing plain text.

[0080] According to the embodiments of the present disclosure, by determining the processing instruction through the processing instruction identifier and the file type, the corresponding processing instruction can be quickly found and the management of the processing instruction is convenient.

[0081] Figure 3 The flowchart of a method for processing batch files according to another embodiment of the present disclosure is schematically shown.

[0082] like Figure 3 As shown, the method for processing batch files in this embodiment includes operations S310 to S330.

[0083] In operation S310, a processing type, a target content, and a modified content matching each target file are obtained according to the file modification information of each of the plurality of target files.

[0084] In operation S320, a position to be modified of each target file is determined using target processing instructions and target contents that match each of the plurality of target files.

[0085] In operation S330, a processing operation matching the processing type is performed at the position to be modified according to the modification content.

[0086] According to an embodiment of the present disclosure, file modification information may be generated based on data received in a file batch processing page. The file batch processing page may display the upload location of the target file, a selection bar for the processing type, a filling location for the target content, and a filling location for the modified content. The upload location of the target file may directly upload the target file, or may fill in the path location where the target file is located. The processing type, target content, and modified content may be obtained from the file modification information based on the corresponding fields of the processing type, target content, and modified content in the file batch processing page.

[0087] According to the embodiments of the present disclosure, the file modification information may be parsed to obtain the processing type, target content, and modification content that match each target file.

[0088] According to an embodiment of the present disclosure, the target content may be content used for positioning in the target file during processing of the target file, thereby determining the position to be modified.

[0089] According to an embodiment of the present disclosure, the modified content may be the content after the target file is processed.

[0090] According to an embodiment of the present disclosure, the processing type may be a type of processing performed on the target file, for example, the processing type includes at least one of a replacement type, a deletion type, and a new addition type.

[0091] According to the embodiments of the present disclosure, processing a target file according to file modification information can increase the standardization of processing of the target file and avoid errors in processing the target file.

[0092] According to an embodiment of the present disclosure, based on the modified content, a processing operation matching the processing type is performed at the position to be modified, including: when the processing type is a replacement type, replacing the modified content with the target content at the position to be modified; when the processing type is a deletion type, deleting the target content at the position to be modified; when the processing type is a new addition type, adding the modified content at the position to be modified.

[0093] According to an embodiment of the present disclosure, the target content of the position to be modified can be processed according to the processing type. When the processing type is a replacement type, the target content of the position to be modified can be deleted, and the modified content can be inserted into the position to be modified. When the processing type is not a deletion type, the target content can be directly deleted. When the processing type is a new addition type, the position to be modified can be set to be behind or in front of the target content as needed, and the modified content can be directly inserted into the position to be modified. Different types of modifications can be performed simultaneously or not simultaneously.

[0094] According to an embodiment of the present disclosure, the position to be modified may be marked in the target file so that the user can identify the position to be modified.

[0095] According to the embodiments of the present disclosure, the target file is modified according to different modification types, which can further increase the standardization of the processing target file.

[0096] According to an embodiment of the present disclosure, the file modification information includes a target storage path, and the method for processing batch files also includes: generating modification files corresponding to multiple modified target files according to the file types of each of the multiple target files to obtain multiple modification files; and storing the multiple modification files to the target storage path.

[0097] According to an embodiment of the present disclosure, after modifying a target file, a modified file corresponding to the original file type is generated based on the respective file types of a plurality of target files, and the file type of the modified file is the same as that of the original target file.

[0098] According to an embodiment of the present disclosure, the target storage path may be information in a file batch processing page, or may be a new path automatically generated according to the target file. Multiple modified files may be stored in the target storage path.

[0099] According to an embodiment of the present disclosure, displaying modification results of multiple target files in a file batch processing page includes: displaying modification results of multiple target files in the file batch processing page according to target storage paths.

[0100] According to an embodiment of the present disclosure, the modification result of multiple target files can be modification completion or modification error. When the modification result is modification completion, the target storage path can be displayed on the file batch processing page. When the modification result is modification error, the storage path of the target file that cannot be modified can be displayed on the batch processing page according to the target file with error.

[0101] According to the embodiments of the present disclosure, the modification results are displayed in the file batch processing page, so that the user can timely grasp the processing status of the target files and facilitate management.

[0102] According to an embodiment of the present disclosure, in response to detecting that a modification request control for multiple target files in a file batch processing page is triggered, respective file types and file modification information of the multiple target files are obtained, including: in response to detecting a file upload operation for multiple target files in a file batch processing page, the multiple target files are obtained; based on the respective file names of the multiple target files, the respective file types of the multiple target files are determined; in response to detecting a modification information upload operation for multiple target files in the file batch processing page, the file modification information of the multiple target files is obtained.

[0103] According to an embodiment of the present disclosure, the file upload operation for multiple target files may be to directly upload the target files, or to fill in the path location where the target files are located and obtain the multiple target files by accessing the path location where the target files are located.

[0104] According to an embodiment of the present disclosure, the respective file types of the plurality of target files may be determined according to the suffixes of the file names of the plurality of target files.

[0105] According to an embodiment of the present disclosure, a user may input file modification information in a file batch processing page, and when the user performs an upload operation on the file batch processing page, the file modification information of each of a plurality of target files may be obtained.

[0106] According to the embodiments of the present disclosure, operations are performed through the file batch processing page, which is convenient and fast, and improves the processing efficiency of the target files.

[0107] Figure 4 The flowchart of a method for processing batch files according to another embodiment of the present disclosure is schematically shown.

[0108] like Figure 4 As shown, the method for processing batch files in this embodiment includes operations S401 to S410.

[0109] In operation S401 , in response to detecting a file upload operation for a plurality of target files in a file batch processing page, the plurality of target files are acquired.

[0110] In operation S402, the respective file types of the plurality of target files are determined according to the respective file names of the plurality of target files.

[0111] In operation S403, in response to detecting an upload operation of modification information for multiple target files in the file batch processing page, file modification information of each of the multiple target files is obtained.

[0112] In operation S404, target processing instructions matching each of the plurality of target files are determined from the processing instruction set according to the file types of each of the plurality of target files.

[0113] In operation S405, based on the file modification information of each of the plurality of target files, a processing type, target content and modification content matching each target file are obtained.

[0114] In operation S406, the position to be modified of each target file is determined by using the target processing instructions and target contents that match each of the plurality of target files.

[0115] In operation S407, a processing operation matching the processing type is performed at the position to be modified according to the modification content.

[0116] In operation S408, modified files corresponding to the multiple modified target files are generated according to the file types of the multiple target files, thereby obtaining multiple modified files.

[0117] In operation S409, the plurality of modified files are stored in the target storage path.

[0118] In operation S410, modification results of a plurality of target files are displayed in a file batch processing page according to the target storage path.

[0119] According to an embodiment of the present disclosure, a user can upload multiple target files and file modification information in a file batch processing page in the front end, can identify the file type of the target file through a Python (computer programming language) script, call the corresponding target processing instruction according to the file type of the target file, and use the target processing instruction to process the multiple target files according to the file modification information.

[0120] For a spreadsheet file, you can call a function to open the spreadsheet file, traverse each cell, find the target content to determine the location to be modified, modify it according to the modified content, and save the modified file. For an electronic text file, you can call a function to open the electronic text file, find the target content in the electronic text file to determine the location to be modified, modify it according to the modified content, and save the modified file.

[0121] According to an embodiment of the present disclosure, multiple modified files can be saved to a target storage path, and the modification results can be displayed in a file batch processing page. The target storage path can be displayed to a user for downloading, or the modified files can be displayed to a user for viewing.

[0122] Based on the above method for processing batch files, the present disclosure also provides a device for processing batch files. Figure 5 The device is described in detail.

[0123] Figure 5 The structural block diagram of the device for processing batch files according to an embodiment of the present disclosure is schematically shown.

[0124] like Figure 5 As shown, the apparatus 500 for processing batch files in this embodiment includes an acquisition module 510 , a determination module 520 , a modification module 530 and a display module 540 .

[0125] The acquisition module 510 is used to, in response to detecting that the modification request control for multiple target files in the file batch processing page is triggered, obtain the respective file types and file modification information of the multiple target files, wherein the multiple target files include at least two target files of different file types. In one embodiment, the acquisition module 510 can be used to perform the operation S210 described above, which will not be repeated here.

[0126] The determination module 520 is used to determine, according to the file types of the multiple target files, a target processing instruction that matches each of the multiple target files from the processing instruction set, wherein the processing instruction set includes multiple processing instructions, and the multiple processing instructions are used to process files of different file types. In one embodiment, the determination module 520 can be used to perform the operation S220 described above, which will not be repeated here.

[0127] The modification module 530 is used to modify the target file using the target processing instructions matching the target files according to the file modification information of the target files. In one embodiment, the modification module 530 can be used to perform the operation S230 described above, which will not be described in detail here.

[0128] The display module 540 is used to display the modification results of multiple target files in the file batch processing page. In one embodiment, the display module 540 can be used to perform the operation S230 described above, which will not be described in detail here.

[0129] According to an embodiment of the present disclosure, the determination module 520 for determining, from a processing instruction set, target processing instructions matching each of the plurality of target files according to the respective file types of the plurality of target files comprises:

[0130] A first determining unit is used to determine, according to the file types of the plurality of target files, a processing instruction identifier that matches each target file from a file type matching relationship set, wherein the file type matching relationship set represents a correspondence between the file type of the target file and the processing instruction identifier; and

[0131] The second determining unit is used to determine the target processing instructions matching each of the multiple target files from the processing instruction set according to the processing instruction identifier matching each target file.

[0132] According to an embodiment of the present disclosure, the modification module 530 for modifying a target file using a target processing instruction matching each of the multiple target files according to the file modification information of each of the multiple target files includes:

[0133] A first modification unit, configured to obtain a processing type, a target content, and a modification content matching each target file according to the file modification information of each of the plurality of target files;

[0134] A second modification unit is used to determine a position to be modified of each target file by using target processing instructions and target contents that match each of the plurality of target files; and

[0135] The third modification unit is used to perform a processing operation matching the processing type at the position to be modified according to the modification content.

[0136] According to an embodiment of the present disclosure, the processing type includes at least one of a replacement type, a deletion type, and a new addition type.

[0137] Wherein, the third modification unit for performing a processing operation matching the processing type at the position to be modified according to the modification content includes:

[0138] A first modification subunit is used to replace the modification content with the target content at the position to be modified when the processing type is a replacement type;

[0139] A second modification subunit is used to delete the target content at the position to be modified when the processing type is a deletion type; and

[0140] The third modification subunit is used to add modification content to the position to be modified when the processing type is a new type.

[0141] According to an embodiment of the present disclosure, the file modification information includes a target storage path, and the device 500 further includes:

[0142] an obtaining module, used to generate, according to the file types of the plurality of target files, modification files corresponding to the plurality of modified target files, to obtain the plurality of modification files; and

[0143] The storage module is used to store multiple modified files to a target storage path.

[0144] According to an embodiment of the present disclosure, the display module 540 for displaying the modification results of multiple target files in the file batch processing page includes:

[0145] The display unit is used to display the modification results of multiple target files in the file batch processing page according to the target storage path.

[0146] According to an embodiment of the present disclosure, in response to detecting that a modification request control for multiple target files in a file batch processing page is triggered, an acquisition module 510 for acquiring respective file types and file modification information of multiple target files includes:

[0147] A first acquisition unit, configured to acquire multiple target files in response to detecting a file upload operation for multiple target files in a file batch processing page;

[0148] A second obtaining unit is used to determine the file types of the plurality of target files according to the respective file names of the plurality of target files; and

[0149] The third obtaining unit is configured to obtain the file modification information of each of the plurality of target files in response to detecting the modification information upload operation for the plurality of target files in the file batch processing page.

[0150] According to an embodiment of the present disclosure, the file type includes at least one of an electronic text type, a spreadsheet type, and a plain text type.

[0151] According to an embodiment of the present disclosure, any multiple modules among the acquisition module 510, the determination module 520, the modification module 530 and the display module 540 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 510, the determination module 520, the modification module 530 and the display module 540 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the acquisition module 510, the determination module 520, the modification module 530 and the display module 540 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0152] Figure 6 A block diagram of an electronic device suitable for implementing a method for processing batch files according to an embodiment of the present disclosure is schematically shown.

[0153] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0154] In RAM603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM602 and RAM603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0155] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.

[0156] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0157] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or the RAM 603 described above and / or one or more memories other than the ROM 602 and the RAM 603.

[0158] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method for processing batch files provided by the embodiment of the present disclosure.

[0159] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0160] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0161] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0162] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0163] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0164] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0165] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for processing batch files, characterized in that: The method comprises: In response to detecting that a modification request control for a plurality of target files in a file batch processing page is triggered, obtaining respective file types and file modification information of the plurality of target files, wherein the plurality of target files include at least two target files of different file types; Determining, from a processing instruction set, target processing instructions that match each of the target files according to the respective file types of the target files, wherein the processing instruction set includes a plurality of processing instructions, and the plurality of processing instructions are used to process files of different file types; modifying the target files using the target processing instructions that match the target files respectively according to the file modification information of the target files; and The modification results of the plurality of target files are displayed in the file batch processing page.

2. The method according to claim 1, characterized in that The step of determining, according to the file types of the plurality of target files, target processing instructions that match the plurality of target files from the processing instruction set comprises: Determining, according to the respective file types of the plurality of target files, a processing instruction identifier matching each of the target files from a file type matching relationship set, wherein the file type matching relationship set represents a corresponding relationship between the file type of the target file and the processing instruction identifier; and According to the processing instruction identifier matched with each of the target files, the target processing instructions matched with each of the plurality of target files are determined from the processing instruction set.

3. The method according to claim 1, characterized in that The step of modifying the target files according to the file modification information of each of the target files by using the target processing instructions that match each of the target files comprises: According to the file modification information of each of the plurality of target files, obtaining a processing type, a target content and a modification content matched with each of the target files; Determining a position to be modified of each of the target files by using the target processing instructions and the target contents that match each of the plurality of target files; and According to the modification content, a processing operation matching the processing type is performed at the position to be modified.

4. The method according to claim 3, characterized in that The processing type includes at least one of a replacement type, a deletion type and a new addition type; Wherein, performing a processing operation matching the processing type at the position to be modified according to the modification content includes: In the case where the processing type is the replacement type, the target content at the to-be-modified position replaces the modification content; In the case where the processing type is the deletion type, deleting the target content at the to-be-modified position; and When the processing type is the new type, the modified content is added to the position to be modified.

5. The method according to any one of claims 1 to 4, characterized in that The file modification information includes a target storage path, and the method further includes: generating, according to the respective file types of the plurality of target files, modified files corresponding to the plurality of modified target files, to obtain a plurality of modified files; and storing the plurality of modified files to the target storage path; The displaying of modification results of the plurality of target files in the file batch processing page includes: The modification results of the plurality of target files are displayed in the file batch processing page according to the target storage path.

6. The method according to claim 5, characterized in that In response to detecting that a modification request control for a plurality of target files in a file batch processing page is triggered, obtaining respective file types and file modification information of the plurality of target files includes: In response to detecting a file upload operation for a plurality of target files in the file batch processing page, acquiring the plurality of target files; Determining the file types of the target files according to their respective file names; and In response to detecting an upload operation of modification information for a plurality of target files in the file batch processing page, file modification information of each of the plurality of target files is obtained.

7. The method according to any one of claims 1 to 3, characterized in that The file type includes at least one of an electronic text type, a spreadsheet type, and a plain text type.

8. A device for processing batch files, characterized in that: The device comprises: an acquisition module, configured to acquire respective file types and file modification information of the plurality of target files in response to detecting that a modification request control for the plurality of target files in the file batch processing page is triggered, wherein the plurality of target files include at least two target files of different file types; a determination module, configured to determine, according to the respective file types of the plurality of target files, a target processing instruction matching each of the plurality of target files from a processing instruction set, wherein the processing instruction set includes a plurality of processing instructions, and the plurality of processing instructions are used to process files of different file types; a modification module, configured to modify the target files according to the file modification information of each of the target files and using the target processing instructions that match each of the target files; and A display module is used to display the modification results of multiple target files in the file batch processing page.

9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.