Batch code to re-name set of template files by changing part of the name of one file (all files to copy changes to the same text) -


I have created a filing system that contains templates containing folders such as the information that we used to accept when booking the booking : A batch command is required to rename all files in one directory, but in order to be more accurate in the directory: a file is an invoice template (PDF form) and Usra job description template (Msdblud) and an additional template for a specific purpose (Also Msdbludblu). There are some more files but I think I do not have to give them names.

Every time I work on a booking, copy the template directory (insert all of these file templates) and then name it according to the job number and then I call it "booking" directory And leave it in the folder that represents the month of the year for which jobs are booked.

In the very first step, how could I get all the files automatically to rename the suit within the directory? Every file is named differently in the same directory, but when I manually change the name of each file, then all share a common factor which is a job number. So what I need to do is just change the job number for that booking name, for each part of the file name, leave the rest of the file name in that form. I think this will save me a lot with the booking process I (CRM software is on the horizon but still far away at this level).

For example if I use "template" from "CFI-00123" (1P2H) "then a file named" Invoice # 000.pdf "inside the directory" Invoice # CFI -00123 PDF "and another file named" Job # 000.docx "should be" Job # CFI-00123.docx "

What are the complexities of things: Job number looks something like this: CFI-00123 (2 PBR), hence the directory will be named in the same way, although the part I make to copy files I want to say "CFI-000123" and there is no part in the bunts (2 PBRs). This is just additional information that helps me identify at a glance that what the job requires and I want to reflect it for each File is not required.

I have never written a batch code and when I use HTML, in a vague understanding, let me tell someone what to do really and Or write.

Thanks for your time and if you have any questions I will try to be as clear as clear as possible. Hope it is not difficult to understand it.

Cheers, Danny

To begin with, does this layout look okay?

  _Software | _Booking | _Template | _... | _CFI-00120 (1p2h). _CFI-00121 (1p2h). _CFI-00122 (1p2h). _CFI-00123 (1P2H)  

- Second, the need to re-designate all the files is being listed in OP, so edit your post and then add Easily read the list

Please comment on this post so that I can read it again.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -