CN110554997A - File name batch modification method and system - Google Patents
File name batch modification method and system Download PDFInfo
- Publication number
- CN110554997A CN110554997A CN201910866332.0A CN201910866332A CN110554997A CN 110554997 A CN110554997 A CN 110554997A CN 201910866332 A CN201910866332 A CN 201910866332A CN 110554997 A CN110554997 A CN 110554997A
- Authority
- CN
- China
- Prior art keywords
- file
- file name
- old
- name
- new
- 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
Links
- 238000002715 modification method Methods 0.000 title claims description 3
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000012986 modification Methods 0.000 claims description 8
- 230000004048 modification Effects 0.000 claims description 8
- 238000012790 confirmation Methods 0.000 claims description 7
- 238000011161 development Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012804 iterative process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/164—File meta data generation
- G06F16/166—File name conversion
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method and a system for modifying file names in batches, which are used for solving the technical problem of low working efficiency caused by the fact that the names of large-batch files need to be modified by existing workers. The invention comprises the following steps: step S1, at least one file with the name modified as required is generated into a template file, and the old file name of the file is recorded into the template file; step S2, the template file is a table file, and two columns of contents in the template file are respectively defined as an old file name column and a new file name column; step S3, according to the old file name of the file with the name needing to be modified, obtaining the old file name edit box corresponding to the old file name from the old file name column, obtaining the new file name edit box corresponding to the old file name edit box from the new file name column, and obtaining the custom edit content from the new file name edit box; and step S4, confirming the obtained custom editing content, and running a Windows built-in bat script to execute batch renaming according to the confirmed custom editing content.
Description
Technical Field
The invention relates to the technical field of file name change, in particular to a method and a system for modifying file names in batches.
Background
In the iterative process of the Windows system, the file renaming mode does not progress in the direction of user convenience. From the age XP to the current age Win10, users can only use the renaming function by slowly double-clicking on the filename or right-clicking the menu, which is really direct and convenient for renaming individual files. However, in the case of renaming a large number of files, although the task rule of renaming is already grasped, the system does not provide a function of bulk renaming, and thus time and labor are consumed in proportion to the number of tasks (the number of files).
In combination with the above limitation analysis, with increasingly complex daily business logic and popularization of the concept of automated production, finding a method and a system for modifying file names in batches becomes an important subject studied by those skilled in the art in order to solve the pain point that employees need to rename a large number of files daily and meet the requirements of automation and one-stop renaming.
Disclosure of Invention
The embodiment of the invention discloses a method and a system for modifying file names in batches, which are used for solving the technical problem of low working efficiency caused by the fact that the names of large-batch files need to be modified by existing workers.
The embodiment of the invention provides a method for modifying file names in batches, which comprises the following steps:
Step S1, at least one file with the name modified as required is generated into a template file, and the old file name of the file is recorded into the template file;
step S2, the template file is a table file, and two columns of contents in the template file are respectively defined as an old file name column and a new file name column;
Step S3, according to the old filename of the file whose name needs to be modified, obtaining the old filename edit box of the old file list where the old filename is located, and obtaining the new filename edit box in the new filename list corresponding to the old filename edit box, and obtaining the custom edit content in the new filename edit box.
and step S4, confirming the obtained custom editing content, and running a Windows built-in bat script to execute batch renaming according to the confirmed custom editing content.
Optionally, the step S4 specifically includes:
and checking the custom editing content, if the custom editing content does not comprise illegal characters, confirming the obtained custom editing content, and if the custom editing content comprises illegal characters, not confirming the obtained custom editing content.
optionally, the file format of the template file includes one of xlsx, xls, and et.
Optionally, the old filename edit boxes are ordered in the old filename column in a reverse-narrative arrangement.
Optionally, the new filename edit boxes are ordered in the new filename column in a reverse-narrative arrangement.
The embodiment of the invention provides a file name batch modification system, which comprises:
The production module is used for modifying at least one file with a name according to needs and generating a template file;
The recording module is used for recording the old file name of the file with the name needing to be modified into the template file;
The definition module is used for respectively defining two columns of contents in the template file as an old file name column and a new file name column;
The acquisition module is used for acquiring an old file name edit box of an old file column where the old file name is located according to the old file name of the file of which the name needs to be modified, acquiring a new file name edit box corresponding to the old file name edit box in a new file name column, and acquiring custom editing contents in the new file name edit box;
and the confirmation execution module is used for confirming the obtained custom editing content and running a Windows built-in bat script to execute batch renaming according to the confirmed custom editing content.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method and a system for modifying file names in batches, which comprises the steps of S1, modifying at least one file with a name according to needs, generating a template file, and inputting the old file name of the file into the template file; step S2, the template file is a table file, and two columns of contents in the template file are respectively defined as an old file name column and a new file name column; step S3, according to the old filename of the file whose name needs to be modified, obtaining the old filename edit box of the old file list where the old filename is located, and obtaining the new filename edit box in the new filename list corresponding to the old filename edit box, and obtaining the custom edit content in the new filename edit box. And step S4, confirming the obtained custom editing content, and running a Windows built-in bat script to execute batch renaming according to the confirmed custom editing content. In the embodiment, through the steps, the staff can select the name files needing to be modified in batches, the old file names of the files are input into the old file name columns of the template files, the staff edits the custom content of the new file name edit boxes of the new file name columns corresponding to the old file name edit boxes in the old file name columns, after clicking confirmation, the files in batches can be automatically changed into the file names needed by the staff, the whole process is simple to operate, and the office efficiency of the staff is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a method for modifying file names in batch according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention discloses a method and a system for modifying file names in batches, which are used for solving the technical problem of low working efficiency caused by the fact that the names of large-batch files need to be modified by existing workers.
in order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
referring to fig. 1, a method for modifying file names in batch according to this embodiment includes:
Step S1, at least one file with the name modified as required is generated into a template file, and the old file name of the file is recorded into the template file;
step S2, the template file is a table file, and two columns of contents in the template file are respectively defined as an old file name column and a new file name column;
step S3, according to the old file name of the file with the name needing to be modified, obtaining the old file name edit box corresponding to the old file name from the old file name column, obtaining the new file name edit box corresponding to the old file name edit box from the new file name column, and obtaining the custom edit content from the new file name edit box;
and step S4, confirming the obtained custom editing content, and running a Windows built-in bat script to execute batch renaming according to the confirmed custom editing content.
it should be noted that, in this embodiment, through the above steps, the staff may select the name files to be modified in batches, enter the old filenames of the files into the old filename list of the template file, and edit the user-defined content in the new filename edit box of the new filename list corresponding to the old filename edit box in the old filename list, and after clicking confirmation, the files in batches may be automatically modified to the filenames required by the staff, so that the operation of the whole process is simple, and the office efficiency of the staff is greatly improved.
further, the step S4 specifically includes:
And checking the custom editing content, if the custom editing content does not comprise illegal characters, confirming the obtained custom editing content, and if the custom editing content comprises illegal characters, not confirming the obtained custom editing content.
If the worker enters a new file name in the new file name edit box, the new file name cannot include illegal characters such as/:? "< > |, and if the new file name edit box appears, the next step cannot be proceeded to.
Further, the file format of the template file includes one of xlsx, xls, and et.
It should be noted that the template file is a form class file, and is specifically similar to the form of an EXCEL form.
further, the old filename edit boxes are sorted in a reverse-narrative arrangement in the old filename column.
Further, the new filename edit boxes are ordered in the new filename column in a reverse-narrative arrangement.
Example two
The system for modifying file names in batches provided by the embodiment comprises:
The production module is used for modifying at least one file with a name according to needs and generating a template file;
the recording module is used for recording the old file name of the file with the name needing to be modified into the template file;
The definition module is used for respectively defining two columns of contents in the template file as an old file name column and a new file name column;
the acquisition module is used for acquiring an old file name edit box of an old file column where the old file name is located according to the old file name of the file of which the name needs to be modified, acquiring a new file name edit box corresponding to the old file name edit box in a new file name column, and acquiring custom editing contents in the new file name edit box;
and the confirmation execution module is used for confirming the obtained custom editing content and running a Windows built-in bat script to execute batch renaming according to the confirmed custom editing content.
the file name batch modification system in the embodiment has three advantages: demand-oriented, convenient, efficient, safe and reliable, wherein:
Facing to the requirements: the system fully understands the pain point of the user in the early development stage, and determines a behavior path suitable for the staff to use through staff value-oriented research, so that the system suitable for the staff is developed;
Convenient high efficiency: in the development process of the system, the development concept is simply and practically used all the time, the concise use environment of the design of the Tkinter UI library is adopted, and the concept is fulfilled by combining the control with high function cohesion.
Safe and reliable: the development of the system is independently completed, only an open source library provided by an official party is used in the development process, the code is public, the function is single, the system can smoothly run in an equipment off-line state, malicious network attacks can be effectively avoided, and the system is safe and reliable.
The main working process of the file name batch modification system in the embodiment is as follows:
1. The file needing to be renamed is selected, the system can rename various types of files directly in the module, the Tkinter library function can call a file selection dialog box, and a user can select the file needing to be renamed in a file window to complete file selection. Then the system automatically creates a default template file [ template.xls ] in the folder, and leads the file name into the template file;
2. in order to enable the functions of the system to be normally used, integrity check is carried out after the file is opened, and whether the following columns including ' old file name ', ' new file name ' and the like exist in the file or not is mainly checked, if the data is incomplete, further operation cannot be carried out, in addition, the system can check the legality of the file name, and the legality of the file name cannot be checked according to the standard legal file name, namely, Windows? ' < |, and if illegal characters are contained, direct importing fails;
3. Look at the rename table. After a user selects a file to be renamed and opens a template file, new and old file names are arranged in a main interface table in a reverse order, and the selected file is renamed to be a mapped file name correspondingly; the system adopts the table to provide the functions of deleting the table column and modifying the table content, and the user can delete the table column by double clicking the old file name column in the table and cancel the renaming request of the corresponding file; and (4) carrying out self-defined modification on a new file name column in the double-click table, editing in a pop-up text box after double-click, and clicking for confirmation. If the input file name is illegal, the input file name cannot be modified;
4. the renaming is confirmed. The user can directly click the confirmation change button to execute the operation after confirming that the table information is correct. When the modification is confirmed, the system runs the built-in bat script of Windows to execute batch renaming.
while the method and system for modifying file names in batches provided by the present invention have been described in detail, those skilled in the art will appreciate that the scope of the invention is not limited to the specific embodiments and applications of the invention.
Claims (6)
1. a file name batch modification method is characterized by comprising the following steps:
step S1, at least one file with the name modified as required is generated into a template file, and the old file name of the file is recorded into the template file;
Step S2, the template file is a table file, and two columns of contents in the template file are respectively defined as an old file name column and a new file name column;
Step S3, according to the old file name of the file with the name needing to be modified, obtaining the old file name edit box corresponding to the old file name from the old file name column, obtaining the new file name edit box corresponding to the old file name edit box from the new file name column, and obtaining the custom edit content from the new file name edit box;
And step S4, confirming the obtained custom editing content, and running a Windows built-in bat script to execute batch renaming according to the confirmed custom editing content.
2. the method for modifying the file names in bulk according to claim 1, wherein the step S4 specifically includes:
And checking the custom editing content, if the custom editing content does not comprise illegal characters, confirming the obtained custom editing content, and if the custom editing content comprises illegal characters, not confirming the obtained custom editing content.
3. the method of claim 1, wherein the file format of the template file comprises one of xlsx, xls, et.
4. The method of bulk filename modification according to claim 1, wherein said old filename edit boxes are ordered in reverse narrative arrangement in said old filename column.
5. the method of bulk filename modification according to claim 1, wherein said new filename edit boxes are ordered in reverse narrative arrangement in said new filename column.
6. a file name batch modification system is characterized by comprising:
the production module is used for modifying at least one file with a name according to needs and generating a template file;
the recording module is used for recording the old file name of the file with the name needing to be modified into the template file;
the definition module is used for respectively defining two columns of contents in the template file as an old file name column and a new file name column;
The acquisition module is used for acquiring an old file name edit box of an old file column where the old file name is located according to the old file name of the file of which the name needs to be modified, acquiring a new file name edit box corresponding to the old file name edit box in a new file name column, and acquiring custom editing contents in the new file name edit box;
and the confirmation execution module is used for confirming the obtained custom editing content and running a Windows built-in bat script to execute batch renaming according to the confirmed custom editing content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910866332.0A CN110554997A (en) | 2019-09-12 | 2019-09-12 | File name batch modification method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910866332.0A CN110554997A (en) | 2019-09-12 | 2019-09-12 | File name batch modification method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110554997A true CN110554997A (en) | 2019-12-10 |
Family
ID=68740245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910866332.0A Pending CN110554997A (en) | 2019-09-12 | 2019-09-12 | File name batch modification method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110554997A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113392075A (en) * | 2021-06-29 | 2021-09-14 | 深圳市蓬莱产业科技有限公司 | Multithreading collaborative file batch naming method |
CN118503215A (en) * | 2024-07-17 | 2024-08-16 | 成都威尔奇空间信息技术有限公司 | File name batch renaming method and device based on unmanned aerial vehicle data |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0902377A1 (en) * | 1997-09-14 | 1999-03-17 | International Business Machines Corporation | File management system |
WO2006064436A2 (en) * | 2004-12-15 | 2006-06-22 | Koninklijke Philips Electronics N.V. | System and method for managing binary large objects |
US7328225B1 (en) * | 2002-03-27 | 2008-02-05 | Swsoft Holdings, Ltd. | System, method and computer program product for multi-level file-sharing by concurrent users |
JP2008225722A (en) * | 2007-03-12 | 2008-09-25 | Brother Ind Ltd | Document edition device |
US20090183117A1 (en) * | 2003-12-12 | 2009-07-16 | Peter Hon-You Chang | Dynamic generation of target files from template files and tracking of the processing of target files |
CN101977121A (en) * | 2010-10-25 | 2011-02-16 | 中兴通讯股份有限公司 | Configuration file processing method, device and system |
CN102541626A (en) * | 2010-12-26 | 2012-07-04 | 上海量明科技发展有限公司 | Method and system for modifying file names |
CN103218350A (en) * | 2013-04-23 | 2013-07-24 | 鸿富锦精密工业(深圳)有限公司 | Electronic device used for changing file name and method for changing file name |
CN104156222A (en) * | 2014-08-29 | 2014-11-19 | 诚迈科技(南京)股份有限公司 | Method for self-defining Android equipment desktop |
CN105630818A (en) * | 2014-10-31 | 2016-06-01 | 东莞宇龙通信科技有限公司 | Method and device for renaming files in batches |
US9734168B1 (en) * | 2013-12-08 | 2017-08-15 | Jennifer Shin | Method and system for organizing digital files |
CN107370791A (en) * | 2017-06-23 | 2017-11-21 | 微梦创科网络科技(中国)有限公司 | The method and system of filename in automatic synchronization renewal content distributing network |
-
2019
- 2019-09-12 CN CN201910866332.0A patent/CN110554997A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0902377A1 (en) * | 1997-09-14 | 1999-03-17 | International Business Machines Corporation | File management system |
US7328225B1 (en) * | 2002-03-27 | 2008-02-05 | Swsoft Holdings, Ltd. | System, method and computer program product for multi-level file-sharing by concurrent users |
US20090183117A1 (en) * | 2003-12-12 | 2009-07-16 | Peter Hon-You Chang | Dynamic generation of target files from template files and tracking of the processing of target files |
WO2006064436A2 (en) * | 2004-12-15 | 2006-06-22 | Koninklijke Philips Electronics N.V. | System and method for managing binary large objects |
JP2008225722A (en) * | 2007-03-12 | 2008-09-25 | Brother Ind Ltd | Document edition device |
CN101977121A (en) * | 2010-10-25 | 2011-02-16 | 中兴通讯股份有限公司 | Configuration file processing method, device and system |
CN102541626A (en) * | 2010-12-26 | 2012-07-04 | 上海量明科技发展有限公司 | Method and system for modifying file names |
CN103218350A (en) * | 2013-04-23 | 2013-07-24 | 鸿富锦精密工业(深圳)有限公司 | Electronic device used for changing file name and method for changing file name |
US9734168B1 (en) * | 2013-12-08 | 2017-08-15 | Jennifer Shin | Method and system for organizing digital files |
CN104156222A (en) * | 2014-08-29 | 2014-11-19 | 诚迈科技(南京)股份有限公司 | Method for self-defining Android equipment desktop |
CN105630818A (en) * | 2014-10-31 | 2016-06-01 | 东莞宇龙通信科技有限公司 | Method and device for renaming files in batches |
CN107370791A (en) * | 2017-06-23 | 2017-11-21 | 微梦创科网络科技(中国)有限公司 | The method and system of filename in automatic synchronization renewal content distributing network |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113392075A (en) * | 2021-06-29 | 2021-09-14 | 深圳市蓬莱产业科技有限公司 | Multithreading collaborative file batch naming method |
CN113392075B (en) * | 2021-06-29 | 2022-02-11 | 深圳市蓬莱产业科技有限公司 | Multithreading collaborative file batch naming method |
CN118503215A (en) * | 2024-07-17 | 2024-08-16 | 成都威尔奇空间信息技术有限公司 | File name batch renaming method and device based on unmanned aerial vehicle data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11620117B2 (en) | Systems and methods for code clustering analysis and transformation | |
US20230244476A1 (en) | Systems and methods for code analysis heat map interfaces | |
US8689125B2 (en) | System and method for automatic information compatibility detection and pasting intervention | |
US20220326928A1 (en) | Systems and methods for entry point-based code analysis and transformation | |
US7310781B2 (en) | System and method for content and information transfer between program entities | |
US7788259B2 (en) | Locating, viewing and interacting with information sources | |
CN107357593A (en) | Source code file construction method, device, electric terminal and readable storage medium storing program for executing | |
US10657324B2 (en) | Systems and methods for generating electronic document templates and electronic documents | |
CN108572952B (en) | Structured processing method and system for engineering electronic file | |
US10552375B2 (en) | Library indexing system and method | |
WO2008024325A2 (en) | Persistent saving portal | |
CN110688145B (en) | Android MVP code automatic generation method and device, medium and electronic equipment | |
JP7509704B2 (en) | Document organization support system and computer program | |
El-Ramly et al. | Mining system-user interaction traces for use case models | |
CN110554997A (en) | File name batch modification method and system | |
CN116561146A (en) | Database log recording method, device, computer equipment and computer readable storage medium | |
US10803093B2 (en) | Systems and methods for enabling a file management label to persist on a data file | |
CN102419758A (en) | Data processing system and method | |
EP2171581A1 (en) | Methods and apparatus for collaborative process modeling | |
CN106815010A (en) | A kind of method and device of operating database | |
Le Zou et al. | On synchronizing with web service evolution | |
CN112948264A (en) | Test task execution method, device, system, storage medium and electronic device | |
US10320887B2 (en) | Integrating cloud service functionality by using document metadata | |
Bhardwaj et al. | Forensic Investigations of Permanently Deleted Data from Recycle Bin | |
Millar et al. | Developing a Scalpel and Foremost Graphical User Interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191210 |
|
RJ01 | Rejection of invention patent application after publication |