How to generate hundreds of files quickly?

  
If you want to use a template file to quickly generate personalized files named after hundreds of people across the company, how can you do this? The following system home Xiaobian to tell you how to generate batch files once, how to generate hundreds of files at a time? In order to complete a job quickly, the company cooperates with all employees and requires each employee to fill out a form in the same format. The office's Xiao Wang will be created by an empty form & ldquo; personal work task. DOC & rdquo; on the company's public server to generate the same file, but named after the company's 600 people, such as "Zhang San.DOC" ;, “Li Si.DOC”…… so that employees can fill in their work content directly on the server without copying and renaming. To accomplish such a batch file generation task, it is obviously too inefficient to manually copy and rename it in the resource manager. Finally, with the help of the word processing software, Xiao Wang quickly completed the establishment of documents for the company's personnel with the help of the company's original personnel record list. Bring a list of employee names to create a TXT text file, such as “Employee List.TXT”. Copy the names of employees of the company from the company roster data file to the TXT file. The employee name was found to be independent. Xiao Wang found that the names of the employees copied into the TXT text file were not independent. There was a half-width space between the names. This is not conducive to the following batch processing. The names of the people need to be displayed in a separate line. With the EmEditor batch replacement method, each employee's name can be easily arranged into a separate line. To do this, use EmEditor to open the “Employee List.TXT”, press the shortcut key combination Ctrl+H, enter a half-width space in the “Find” box, and enter two half-widths in the “Replace with” text box. The combination of the characters \ , then press the "Replace All" button to complete the branch processing of the employee's name (Figure 1). Bulk generation copy command Our task is to generate a separate DOC file for employees of the whole company from the “personal work task.DOC”, we hope that this work is done automatically by the computer, therefore, the command sequence for constructing the automatic copy file is what we want to do. work. Now, we already have a list of employee names that are independent. We can automatically generate files by adding a file copy command in the following format on the basis of each name: COPY Personal Work Tasks. DOC Zhang San. DOCCOPY Personal Work Tasks .DOC Li Si.DOC…… …… This work is also done by the replacement operation in EmEditor. To do this, use EmEditor to open the “Employee List.TXT”, press Ctrl+H to enter the replacement window, and enter the \ two half-width characters in the “Find &” text box, in the “Replace with” text box. Enter “\ COPY Personal Work Tasks.DOC ” (Note that there is a half-width space before and after the DOC), then press the “Replace All” button to replace and then the first line of commands. Manual copy processing to complete the branch processing of employee names (Figure 2). After the batch file generation is completed as above, the files of the “Employee List.TXT” and “Personal Work Tasks.DOC” will be placed in the same working directory of the server. Change the extension of the “Employee List.TXT” file to BAT. Double-click the batch file to generate a separate working file for the company. Tip: The batch method described above will be very efficient when operating a large number of files or folders. The more people, the more files, the higher the efficiency. The above cases are just a matter of inspiration. In fact, the ideas in this case apply to any occasion where a large number of different names are generated by a template. In addition, readers can also learn from this method combined with Windows internal DOS commands, play more in the daily file operations, flexible implementation of file processing and management. This article comes from [System Home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved