CN105630818A - Method and device for renaming files in batches - Google Patents

Method and device for renaming files in batches Download PDF

Info

Publication number
CN105630818A
CN105630818A CN201410610161.2A CN201410610161A CN105630818A CN 105630818 A CN105630818 A CN 105630818A CN 201410610161 A CN201410610161 A CN 201410610161A CN 105630818 A CN105630818 A CN 105630818A
Authority
CN
China
Prior art keywords
renaming
chained list
path information
file path
objects
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
CN201410610161.2A
Other languages
Chinese (zh)
Inventor
刘雷刚
李玉兰
陈泽宜
任袁娇
张旭珠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Yulong Telecommunication Technology Co Ltd
Original Assignee
Dongguan Yulong Telecommunication 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 Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Dongguan Yulong Telecommunication Technology Co Ltd
Priority to CN201410610161.2A priority Critical patent/CN105630818A/en
Publication of CN105630818A publication Critical patent/CN105630818A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for renaming files in batches, which can realize the complete renaming of any number (at least one) of files. The method comprises the following steps: determining at least one renamed object; acquiring a batch file renaming instruction; displaying a preset collaboration window according to the batch file renaming instruction, wherein the preset collaboration window comprises a renaming rule setting option; receiving a renaming rule input by a user in the collaboration window; renaming the at least one renamed object in accordance with the renaming rules. The invention is suitable for the technical field of computers.

Description

A kind of method of batch documents renaming and device
Technical field
The present invention relates to field of computer technology, particularly relate to method and the device of a kind of batch documents renaming.
Background technology
At present, the existing method that file is carried out renaming in prior art, but the method that batch documents carries out renaming is less not yet.
Wherein, patent CN103514231A discloses a kind of file designation method, it is possible to realize the renaming to batch documents. The method first obtains name instruction, and currently treats name file according to naming instruction to determine, wherein, name instruction includes result character string; When the type naming instruction is named for batch, obtain the catalogue file currently treating that name file comprises, and in the name character string of catalogue file, determine substring to be replaced respectively, the substring to be replaced in the name character string of catalogue file is replaced with result character string. Assume an existing file " IMG ", comprise 7 catalogue files, as shown in Figure 1. Adopt the method that the catalogue file that file " IMG " comprises carries out batch renaming, it is necessary to first the title according to file determines substring to be replaced, it is assumed that the substring to be replaced determined is " IMG "; Further according to the result character string (it is assumed herein that result character string is " picture ") that name instruction includes, character string to be replaced " IMG " in the name character string of catalogue file is replaced with result character string " picture ", then the catalogue file after renaming is as shown in Figure 2.
Visible, on the one hand, the method is simply simple " identify and replace " for the renaming of catalogue file, it is impossible to change the filename of catalogue file completely. Such as, the file " IMG_001 " in Fig. 1, after it is carried out renaming, new file is called " picture _ 001 ", and therefore filename does not change completely, still remains " _ 001 ";
On the other hand, the method is in units of file, the catalogue file of all eligible (including character string to be replaced in name character string) that file is comprised all carries out renaming, then cannot be carried out renaming for ineligible catalogue file, therefore the method cannot realize the renaming of partial document. Such as, user wishes the file " IMG_003 " in Fig. 1 and " park " are carried out renaming, and the filename of other file is not changed. Adopting the method to after catalogue file renaming, the filename of file " IMG_001 " and " IMG_002 " is all changed, and the filename of file " park " does not change, it does not have reach the expection purpose of user.
To sum up, file renaming method of the prior art cannot change filename completely, also cannot realize the renaming to partial document.
Summary of the invention
Embodiments of the invention provide method and the device of a kind of batch documents renaming, filename cannot be changed completely at least solving existing file renaming method, and the problem that partial document cannot be carried out renaming, it is possible to realize the complete renaming of the file to any amount (at least one).
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, it is provided that a kind of method of batch documents renaming, including:
Determine at least one renaming objects;
Obtain batch documents renamed instructions;
According to described batch documents renamed instructions, collaborative window is preset in display, and wherein, described default collaborative window includes Rename rule setting options;
Receive the Rename rule that user inputs at described collaborative window;
According to described Rename rule, at least one renaming objects described is carried out renaming.
Method based on the batch documents renaming that the embodiment of the present invention provides, on the one hand, no longer as prior art, in units of file, the catalogue file of all eligible (including character string to be replaced in name character string) that file is comprised all carries out renaming, but selected the file (or file) of any amount (at least one) as renaming objects by user, therefore, it is possible to realize the renaming to partial document; On the other hand, compared with prior art, the method of the batch documents renaming that the embodiment of the present invention provides, renaming to file is no longer simple " identify and replace ", but in collaborative window, inputted Rename rule by user, after receiving the Rename rule of user's input, according to Rename rule, renaming objects is carried out renaming. Therefore, the method for the batch documents renaming that the embodiment of the present invention provides can change the filename of file completely, it is achieved renaming completely.
To sum up, the method of the batch documents renaming that the embodiment of the present invention provides, can solve the problem that existing file renaming method cannot change filename completely, and the problem that partial document cannot be carried out renaming, it is possible to achieve the complete renaming to the file of any amount (at least one).
Second aspect, it is provided that the device of a kind of batch documents renaming, comprises determining that unit, acquiring unit, display unit, reception unit and renaming unit.
Described determine unit, be used for determining at least one renaming objects;
Described acquiring unit, is used for obtaining batch documents renamed instructions;
Described display unit, for according to described batch documents renamed instructions, collaborative window is preset in display, and wherein, described default collaborative window includes Rename rule setting options;
Described reception unit, for receiving the Rename rule that user inputs at described collaborative window;
Described renaming unit, for according to described Rename rule, carrying out renaming at least one renaming objects described.
Device based on the batch documents renaming that the embodiment of the present invention provides, on the one hand, no longer as prior art, in units of file, the catalogue file of all eligible (including character string to be replaced in name character string) that file is comprised all carries out renaming, but selected the file (or file) of any amount (at least one) as renaming objects by user, therefore, it is possible to realize the renaming to partial document; On the other hand, compared with prior art, the device of the batch documents renaming that the embodiment of the present invention provides, renaming to file is no longer simple " identify and replace ", but in collaborative window, inputted Rename rule by user, after receiving the Rename rule of user's input, according to Rename rule, renaming objects is carried out renaming. Therefore, the device of the batch documents renaming that the embodiment of the present invention provides can change the filename of file completely, it is achieved renaming completely.
To sum up, the device of the batch documents renaming that the embodiment of the present invention provides, can solve the problem that prior art cannot change filename and the problem that partial document cannot be carried out renaming completely, it is possible to achieve the complete renaming to the file of any amount (at least one).
Accompanying drawing explanation
Fig. 1 is file and catalogue file schematic diagram thereof;
Fig. 2 uses prior art to the result schematic diagram after file shown in Fig. 1 and catalogue file renaming thereof;
The schematic flow sheet one of the method for a kind of batch documents renaming that Fig. 3 provides for the embodiment of the present invention;
The schematic diagram of a kind of collaborative menu that Fig. 4 provides for the embodiment of the present invention;
The schematic diagram of a kind of collaborative window that Fig. 5 provides for the embodiment of the present invention;
The method of the batch documents renaming that Fig. 6 provides for using the embodiment of the present invention is to the result schematic diagram after filesselected renaming in Fig. 4;
The schematic flow sheet two of the method for a kind of batch documents renaming that Fig. 7 provides for the embodiment of the present invention;
The schematic flow sheet three of the method for a kind of batch documents renaming that Fig. 8 provides for the embodiment of the present invention;
The single-track link table of a kind of file path information for storing renaming objects that Fig. 9 provides for the embodiment of the present invention;
The schematic flow sheet four of the method for a kind of batch documents renaming that Figure 10 provides for the embodiment of the present invention;
The structural representation one of the device of a kind of batch documents renaming that Figure 11 provides for the embodiment of the present invention;
The structural representation two of the device of a kind of batch documents renaming that Figure 12 provides for the embodiment of the present invention;
The structural representation three of the device of a kind of batch documents renaming that Figure 13 provides for the embodiment of the present invention;
The structural representation four of the device of a kind of batch documents renaming that Figure 14 provides for the embodiment of the present invention;
The structural representation five of the device of a kind of batch documents renaming that Figure 15 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments. Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
For the ease of knowing the technical scheme of the description embodiment of the present invention, in an embodiment of the present invention, have employed the printed words such as " first ", " second " function is made a distinction with the essentially identical identical entry of effect or similar item, it will be appreciated by those skilled in the art that quantity and execution order are not defined by the printed words such as " first ", " second ".
Embodiment one,
The embodiment of the present invention provides a kind of method of batch documents renaming, as it is shown on figure 3, include:
S301, determine at least one renaming objects.
Wherein, renaming objects can be picture, document, video file, audio file, file etc., and this is not especially limited by the embodiment of the present invention.
S302, acquisition batch documents renamed instructions.
Concrete, it is possible to " batch renaming " option is set in advance in collaborative menu, as shown in Figure 4. Select renaming objects user, and after " batch renaming " option in the collaborative menu of click, batch documents renamed instructions can be got. This is not especially limited by the embodiment of the present invention.
S303, according to batch documents renamed instructions, collaborative window is preset in display, wherein, presets collaborative window and includes Rename rule setting options.
It should be noted that in the method for the batch documents renaming of embodiment of the present invention offer, Rename rule setting options can be arranged as required to. Such as, Rename rule setting options can be file description, Base Serial Number and numbering increment, it is also possible to being that file describes, names date, Base Serial Number and numbering increment, this is not especially limited by the embodiment of the present invention. If Rename rule setting options are files to be described, name date, Base Serial Number and numbering increment four, then corresponding collaborative window is referred to Fig. 5.
The Rename rule that S304, reception user input at collaborative window.
S305, according to Rename rule, at least one renaming objects is carried out renaming.
Exemplary, assume that Rename rule setting options are that file describes, names date, Base Serial Number and numbering increment four, referring to Fig. 5, if the file of user's input is described as " updates ", the name date selected is " 20140723 ", the Base Serial Number and the numbering increment that arrange are " 5 ", filesselected in Fig. 4 (i.e. file " 2014_0723 ", " 100_0905 ", " reference material ") is carried out renaming by the method then using the batch documents renaming that the embodiment of the present invention provides, and the result after duplication of name is such as shown in 6 figure. Visible, the file before chosen all is renamed.
Preferably, as it is shown in fig. 7, in the method for the batch documents renaming of the embodiment of the present invention, step S301, namely determines at least one renaming objects, specifically may include that
S301a, obtain the file path information of at least one renaming objects.
S301b, file path information according at least one renaming objects, it is determined that at least one renaming objects.
It should be noted that, file path information in the embodiment of the present invention includes filename, renaming objects and file path information are relations one to one, namely a renaming objects has unique file path information, can find and its unique corresponding renaming objects according to a file path information.
Exemplary, assume all pictures in the file " photograph album " under C dish to be carried out renaming, then the file path information of " IMG_001 " in file " photograph album " is " C: photograph album IMG_001 ", can uniquely determine file " IMG_001 " according to this document routing information.
Further, as shown in Figure 8, in the above-mentioned implementation process of the embodiment of the present invention, after step S301a, namely after obtaining the file path information of at least one renaming objects, it is also possible to including:
S301c, the file path information of at least one renaming objects is added into chained list.
Wherein, chained list can be specifically single-track link table, and single-track link table each node data field storage renaming objects file path information.
Then step S305, namely according to Rename rule, carries out renaming at least one renaming objects, specifically may include that
S305a, obtain predefined chain list index, and Quality Initiative list index points to each intermediate list node of chained list successively from the head chained list node of chained list.
S305b, according to Rename rule, it is determined that the new filename of the renaming objects that file path information in each chained list node of chained list is corresponding.
S305c, renaming objects corresponding to file path information replaced with new filename in each chained list node of chained list filename.
Exemplary, it is assumed that the chained list of the file path information of storage renaming objects is Link_List (data field is data, and pointer field is next, and head pointer is head), as shown in Figure 9. If predefined chain list index is p, then Schilling " p=head ", get final product Quality Initiative list index p and point to the head chained list node of chained list Link_List, the stored file path information of a chained list node can be found further according to statement " p-> data ", namely the renaming objects of correspondence is can determine that according to this document routing information, the new filename of the renaming objects of correspondence is determined according to Rename rule, and replace the filename of renaming objects with new filename after, the renaming of renaming objects corresponding to the file path information in correct chained list node can be completed. Afterwards, make " p=p-> next ", next chained list node can be pointed to by Quality Initiative list index p. This example only for C Plus Plus, gives the concrete grammar that Quality Initiative list index points to each intermediate list node of chained list successively from the head chained list node of chained list. Certainly, it is readily appreciated by a person skilled in the art that may be used without other programming languages realizes said process, this is not especially limited by the embodiment of the present invention.
It should be noted that, in the above-mentioned implementation process of the embodiment of the present invention, the sequencing that step S301b and step S301c is uninevitable, namely can first carry out step S301c as shown in Figure 8, perform step S301b again, can also first carrying out step S301b, perform step S301c again, this is not especially limited by the embodiment of the present invention.
Further, as shown in Figure 10, the method for the batch documents renaming of the embodiment of the present invention, after step S305b, namely according to Rename rule, it is determined that after the new filename of the renaming objects that file path information in each chained list node of chained list is corresponding, it is also possible to including:
S305d, judge whether new filename exists.
If the new filename of S305e exists, show the dialog box that reports an error.
Then step S305c, namely replaces the filename of renaming objects corresponding to the file path information in each chained list node of chained list, specifically may include that with new filename
If new filename is absent from, replace the filename of renaming objects corresponding to the file path information in each chained list node of chained list with new filename.
So, after judging that new filename is absent from, then renaming objects is carried out renaming, can prevent multiple file from using the situation of identical file name to occur.
Further, the method for batch documents renaming that the embodiment of the present invention provides, after the filename of the renaming objects that file path information in each chained list node replacing chained list with new filename is corresponding, it is also possible to including:
Delete the file path information in each chained list node of chained list.
It should be noted that, there is provided in batch documents renaming method in the embodiment of the present invention, after the renaming completing renaming objects, delete the file path information in each chained list node of chained list and can discharge the resource shared by chained list in time, reduce taking Installed System Memory.
It should be noted that, the embodiment of the present invention provides batch documents renaming method to can be applicable to mobile phone operating system, such as Android (Android) operating system, Apple Macintosh operating system (iPhoneOperatingSystem, iOS), Saipan (Symbian) operating system etc., also apply be applicable to computer operating system, this is not especially limited by the embodiment of the present invention.
The method of the batch documents renaming that the embodiment of the present invention provides, first determines at least one renaming objects, then obtains batch documents renamed instructions, and according to batch documents renamed instructions, collaborative window is preset in display, wherein, presets collaborative window and includes Rename rule setting options; Then, receive the Rename rule that user inputs at collaborative window, and according to Rename rule, at least one renaming objects is carried out renaming. Compared with prior art, on the one hand, the method of the batch documents renaming that the embodiment of the present invention provides, no longer in units of file, the catalogue file of all eligible (including character string to be replaced in name character string) that file is comprised all carries out renaming, but selected the file (or file) of any amount (at least one) as renaming objects by user, therefore, it is possible to realize the renaming to partial document; On the other hand, the method of the batch documents renaming that the embodiment of the present invention provides, renaming to file is no longer simple " identify and replace ", but in collaborative window, inputted Rename rule by user, after receiving the Rename rule of user's input, according to Rename rule, renaming objects is carried out renaming. Therefore, the method for the batch documents renaming that the embodiment of the present invention provides can change the filename of file completely, it is achieved renaming completely.
To sum up, the method of the batch documents renaming that the embodiment of the present invention provides, can solve the problem that existing file renaming method cannot change filename completely, and the problem that partial document cannot be carried out renaming, it is possible to achieve the complete renaming to the file of any amount (at least one).
Embodiment two,
The embodiment of the present invention provides the device 110 of a kind of batch documents renaming, as shown in figure 11, comprises determining that unit 1101, acquiring unit 1102, display unit 1103, receives unit 1104 and renaming unit 1105.
Wherein it is determined that unit 1101, it is used for determining at least one renaming objects.
Acquiring unit 1102, is used for obtaining batch documents renamed instructions.
Display unit 1103, for according to batch documents renamed instructions, collaborative window is preset in display, wherein, presets collaborative window and includes Rename rule setting options.
Receive unit 1104, for receiving the Rename rule that user inputs at collaborative window.
Renaming unit 1105, for according to Rename rule, carrying out renaming at least one renaming objects.
Preferably, as shown in figure 12, in the device 110 of the batch documents renaming of the embodiment of the present invention, it is determined that unit 1101 specifically includes: the first acquisition module 1101a and first determines module 1101b.
Wherein, the first acquisition module 1101a, for obtaining the file path information of at least one renaming objects.
First determines module 1101b, for the file path information according at least one renaming objects, it is determined that at least one renaming objects.
Further, as shown in figure 13, in the device 110 of the batch documents renaming of the embodiment of the present invention, it is determined that unit 1101 can also include: add module 1101c.
Add module 1101c, for, after obtaining the file path information of at least one renaming objects, the file path information of at least one renaming objects being added into chained list.
Then renaming unit 1105, specifically may include that the second acquisition module 1105a, second determines module 1105b and replacement module 1105c.
Wherein, the second acquisition module 1105a, it is used for obtaining predefined chain list index, and Quality Initiative list index points to each intermediate list node of chained list successively from the head chained list node of chained list.
Second determines module 1105b, for according to Rename rule, it is determined that the new filename of the renaming objects that file path information in each chained list node of chained list is corresponding.
Replacement module 1105c, for the filename of renaming objects corresponding to file path information in each chained list node with new filename replacement chained list.
Further, as shown in figure 14, in the device 110 of the batch documents renaming of the embodiment of the present invention, renaming unit 1105 can also include: judge module 1105d and display module 1105e.
Wherein, it is judged that module 1105d, for according to Rename rule, it is determined that after the new filename of the renaming objects that file path information in each chained list node of chained list is corresponding, it is judged that whether new filename exists.
Display module 1105e, if existing for new filename, shows the dialog box that reports an error.
Then replacement module 1105c, specifically for:
If new filename is absent from, replace the filename of renaming objects corresponding to the file path information in each chained list node of chained list with new filename.
Further, in the device 110 of the batch documents renaming that the embodiment of the present invention provides, renaming unit 1105 can also include: removing module 1105f.
Removing module 1105f, after the filename for renaming objects corresponding to file path information in each chained list node replacing chained list with new filename, deletes the file path information in each chained list node of chained list.
Device based on the batch documents renaming that the embodiment of the present invention provides, first, by determining that unit determines at least one renaming objects, batch documents renamed instructions is obtained again by acquiring unit, and the batch documents renamed instructions obtained according to acquiring unit by display unit, collaborative window is preset in display, wherein, presets collaborative window and includes Rename rule setting options; Then, received, by receiving unit, the Rename rule that user inputs at collaborative window, and by renaming unit according to Rename rule, at least one renaming objects is carried out renaming. Compared with prior art, on the one hand, the device of the batch documents renaming that the embodiment of the present invention provides, no longer in units of file, the catalogue file of all eligible (including character string to be replaced in name character string) that file is comprised all carries out renaming, but selected the file (or file) of any amount (at least one) as renaming objects by user, therefore, it is possible to realize the renaming to partial document; On the other hand, the device of the batch documents renaming that the embodiment of the present invention provides, renaming to file is no longer simple " identify and replace ", but in collaborative window, inputted Rename rule by user, after receiving the Rename rule of user's input, according to Rename rule, renaming objects is carried out renaming. Therefore, the device of the batch documents renaming that the embodiment of the present invention provides can change the filename of file completely, it is achieved renaming completely.
To sum up, the device of the batch documents renaming that the embodiment of the present invention provides, can solve the problem that prior art cannot change filename and the problem that partial document cannot be carried out renaming completely, it is possible to achieve the complete renaming to the file of any amount (at least one).
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the device of foregoing description, only it is illustrated with the division of above-mentioned each functional module, in practical application, as desired above-mentioned functions distribution can be completed by different functional modules, be divided into different functional modules by the internal structure of device, to complete all or part of function described above. The specific works process of the system of foregoing description, device and unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it is possible to realize by another way. Such as, device embodiment described above is merely schematic, such as, the division of module or unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform. Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, machinery or other form.
The unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE. Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit. Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
If integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium. Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of each embodiment method of the present invention. And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
Above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention. Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (10)

1. the method for a batch documents renaming, it is characterised in that described method includes:
Determine at least one renaming objects;
Obtain batch documents renamed instructions;
According to described batch documents renamed instructions, collaborative window is preset in display, and wherein, described default collaborative window includes Rename rule setting options;
Receive the Rename rule that user inputs at described collaborative window;
According to described Rename rule, at least one renaming objects described is carried out renaming.
2. method according to claim 1, it is characterised in that described determine at least one renaming objects, including:
Obtain the file path information of at least one renaming objects described;
File path information according at least one renaming objects described, it is determined that at least one renaming objects described.
3. method according to claim 2, it is characterised in that after the file path information of at least one renaming objects described in described acquisition, also includes:
The file path information of at least one renaming objects described is added into chained list;
Described according to described Rename rule, at least one renaming objects described is carried out renaming, including:
Obtain predefined chain list index, and control described chain list index and point to each intermediate list node of described chained list from the head chained list node of described chained list successively;
According to described Rename rule, it is determined that the new filename of the renaming objects that file path information in each chained list node of described chained list is corresponding;
The filename of renaming objects corresponding to the file path information in each chained list node of described chained list is replaced with described new filename.
4. method according to claim 3, it is characterised in that described according to described Rename rule, it is determined that after the new filename of the renaming objects that file path information in each chained list node of described chained list is corresponding, also include:
Judge whether described new filename exists;
If described new filename exists, show the dialog box that reports an error;
The described new filename of described use replaces the filename of renaming objects corresponding to the file path information in each chained list node of described chained list, including:
If described new filename is absent from, replace the filename of renaming objects corresponding to the file path information in each chained list node of described chained list with described new filename.
5. the method according to claim 3 or 4, it is characterised in that after the described new filename of described use replaces the filename of renaming objects corresponding to the file path information in each chained list node of described chained list, also include:
Delete the file path information in each chained list node of described chained list.
6. the device of a batch documents renaming, it is characterised in that described device comprises determining that unit, acquiring unit, display unit, reception unit and renaming unit.
Described determine unit, be used for determining at least one renaming objects;
Described acquiring unit, is used for obtaining batch documents renamed instructions;
Described display unit, for according to described batch documents renamed instructions, collaborative window is preset in display, and wherein, described default collaborative window includes Rename rule setting options;
Described reception unit, for receiving the Rename rule that user inputs at described collaborative window;
Described renaming unit, for according to described Rename rule, carrying out renaming at least one renaming objects described.
7. device according to claim 6, it is characterised in that described determine that unit includes: the first acquisition module and first determines module;
Described first acquisition module, for obtaining the file path information of at least one renaming objects described;
Described first determines module, for the file path information according at least one renaming objects described, it is determined that at least one renaming objects described.
8. device according to claim 7, it is characterised in that described determine that unit also includes: add module;
Described interpolation module, for, after the file path information of at least one renaming objects described in described acquisition, being added into chained list by the file path information of at least one renaming objects described;
Described renaming unit, including: the second acquisition module, second determines module and replacement module;
Described second acquisition module, is used for obtaining predefined chain list index, and controls described chain list index and point to each intermediate list node of described chained list from the head chained list node of described chained list successively;
Described second determines module, for according to described Rename rule, it is determined that the new filename of the renaming objects that file path information in each chained list node of described chained list is corresponding;
Described replacement module, for the filename of renaming objects corresponding to file path information in each chained list node with the described new filename described chained list of replacement.
9. device according to claim 8, it is characterised in that described renaming unit also includes: judge module and display module;
Described judge module, for described according to described Rename rule, it is determined that after the new filename of the renaming objects that file path information in each chained list node of described chained list is corresponding, it is judged that whether described new filename exists;
Described display module, if existing for described new filename, shows the dialog box that reports an error;
Described replacement module, specifically for:
If described new filename is absent from, replace the filename of renaming objects corresponding to the file path information in each chained list node of described chained list with described new filename.
10. device according to claim 8 or claim 9, it is characterised in that described renaming unit also includes: removing module;
Described removing module, is used for, after the described new filename of described use replaces the filename of renaming objects corresponding to the file path information in each chained list node of described chained list, deleting the file path information in each chained list node of described chained list.
CN201410610161.2A 2014-10-31 2014-10-31 Method and device for renaming files in batches Pending CN105630818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410610161.2A CN105630818A (en) 2014-10-31 2014-10-31 Method and device for renaming files in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410610161.2A CN105630818A (en) 2014-10-31 2014-10-31 Method and device for renaming files in batches

Publications (1)

Publication Number Publication Date
CN105630818A true CN105630818A (en) 2016-06-01

Family

ID=56045766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410610161.2A Pending CN105630818A (en) 2014-10-31 2014-10-31 Method and device for renaming files in batches

Country Status (1)

Country Link
CN (1) CN105630818A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109508387A (en) * 2018-11-08 2019-03-22 深圳供电局有限公司 Map renames method, apparatus, computer equipment and storage medium
CN110096479A (en) * 2019-03-15 2019-08-06 平安科技(深圳)有限公司 Batch renaming method, apparatus, computer equipment and the storage medium of voice messaging
CN110554997A (en) * 2019-09-12 2019-12-10 广东电网有限责任公司 File name batch modification method and system
CN110968558A (en) * 2019-11-07 2020-04-07 广州明珞汽车装备有限公司 Renaming method, system and storage medium for prototype, example and folder
CN111488313A (en) * 2020-03-13 2020-08-04 上海外高桥造船有限公司 Tribon-based model name batch processing method and system
CN111813747A (en) * 2020-07-09 2020-10-23 广东一一五科技股份有限公司 File batch renaming method, electronic equipment and computer readable storage medium
CN112015702A (en) * 2020-09-15 2020-12-01 支付宝(杭州)信息技术有限公司 Message file name processing method, device and equipment
WO2021233115A1 (en) * 2020-05-19 2021-11-25 腾讯科技(深圳)有限公司 Method and apparatus for modifying file name, and storage medium
CN113760249A (en) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 Program file processing method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770814A (en) * 2004-10-02 2006-05-10 Lg电子株式会社 Method and apparatus for storing image files of mobile communication terminal
CN103258018A (en) * 2013-04-27 2013-08-21 北京金和软件股份有限公司 File synchronization method capable of accurately monitoring file changes in catalog folder
CN103336821A (en) * 2013-06-28 2013-10-02 宇龙计算机通信科技(深圳)有限公司 Naming method and naming device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770814A (en) * 2004-10-02 2006-05-10 Lg电子株式会社 Method and apparatus for storing image files of mobile communication terminal
CN103258018A (en) * 2013-04-27 2013-08-21 北京金和软件股份有限公司 File synchronization method capable of accurately monitoring file changes in catalog folder
CN103336821A (en) * 2013-06-28 2013-10-02 宇龙计算机通信科技(深圳)有限公司 Naming method and naming device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨生举等: "《JSP动态WEB技术与开发实例》", 30 June 2014, 甘肃人民出版社 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109508387A (en) * 2018-11-08 2019-03-22 深圳供电局有限公司 Map renames method, apparatus, computer equipment and storage medium
CN110096479A (en) * 2019-03-15 2019-08-06 平安科技(深圳)有限公司 Batch renaming method, apparatus, computer equipment and the storage medium of voice messaging
CN110096479B (en) * 2019-03-15 2023-07-25 平安科技(深圳)有限公司 Batch renaming method and device for voice information, computer equipment and storage medium
CN110554997A (en) * 2019-09-12 2019-12-10 广东电网有限责任公司 File name batch modification method and system
CN110968558A (en) * 2019-11-07 2020-04-07 广州明珞汽车装备有限公司 Renaming method, system and storage medium for prototype, example and folder
CN110968558B (en) * 2019-11-07 2023-04-07 广州明珞汽车装备有限公司 Method, system and storage medium for renaming prototype, example and folder
CN111488313A (en) * 2020-03-13 2020-08-04 上海外高桥造船有限公司 Tribon-based model name batch processing method and system
CN111488313B (en) * 2020-03-13 2024-02-02 上海外高桥造船有限公司 Model name batch processing method and system based on Tribon
WO2021233115A1 (en) * 2020-05-19 2021-11-25 腾讯科技(深圳)有限公司 Method and apparatus for modifying file name, and storage medium
CN111813747A (en) * 2020-07-09 2020-10-23 广东一一五科技股份有限公司 File batch renaming method, electronic equipment and computer readable storage medium
CN112015702A (en) * 2020-09-15 2020-12-01 支付宝(杭州)信息技术有限公司 Message file name processing method, device and equipment
CN113760249A (en) * 2021-01-05 2021-12-07 北京沃东天骏信息技术有限公司 Program file processing method, device and equipment

Similar Documents

Publication Publication Date Title
CN105630818A (en) Method and device for renaming files in batches
KR101522014B1 (en) The method, device and recording medium for managing application icon
CN102510420B (en) Method for quickly performing unified operation on multiple desktop elements in mobile terminal
CN111443912B (en) Component-based page rendering method, device, computer equipment and storage medium
CN109446570B (en) Business process display method, device, computer equipment and storage medium
US11086638B2 (en) Method and apparatus for loading application
US20130227085A1 (en) Terminal and method for using cloud services
EP2570917A1 (en) Method and device for adding menu items in android menu
CN108804188A (en) Changing an interface skin method and device
CN105787077A (en) Data synchronizing method and device
CN101840418A (en) User word library synchronous update method, update server and input method system
CN102938784A (en) Method and system used for data storage and used in distributed storage system
CN104750739A (en) Method and device for document sharing between user groups
CN105183768A (en) File management method, apparatus and terminal device
CN112395253B (en) Index file generation method, terminal device, electronic device and medium
WO2017200775A1 (en) System for providing and employing recommended resolution paths
CN108563440A (en) The automatic adding method of List Controller code, device and readable storage medium storing program for executing
CN105653258A (en) Code processing method and apparatus
CN106062693A (en) Desktop sharing method and mobile terminal
CN104461826A (en) Object flow monitoring method, device and system
CN110941547B (en) Automatic test case library management method, device, medium and electronic equipment
CN103544254B (en) A kind of data managing method and device
CN109117199B (en) Configuration management method and device for distributed program
CN106021359A (en) CAD file modification method and device
CN102467376B (en) Modification method and device for character information

Legal Events

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

Application publication date: 20160601

RJ01 Rejection of invention patent application after publication