I'm looking for a batch script or a VBScript that will read the first few lines of text of a file and if match a string of text specified then rename the file or files to a specific file name. I want to be able to run the script from anywhere, i.e C:\Scripts. The path to the source files is C:\Files. Once the file or files are renamed, they must be moved to C:\Reports and deleted from C:\Files. The file or files are not in any file format specific so the file format must be left alone. I also like to have the option to add additional search and rename option in case there are new files. Finally the script must loop until all files are renamed and moved.
Script Directory C:\Scripts
Source Directory C:\Files
Destination Directory C:\Reports
What the script must do:
If found "NOTICE OF PAST DUE PAYMENT on MM/DD/YYYY for Account 123 Loan 0005" then rename file to "DQ Notice"
If found "NOTICE OF ATM WITHDRAW on MM/DD/YYYY for Account 123 Checking 0005" then rename file to "ATM Notice"
If found "NOTICE OF OVERDRAWN on MM/DD/YYYY for Account 123 Checking 0005" then rename file to "Overdraft Notice"
Ability to add additional line
Dear Sir, My first 2 projects were regarding the same kind of projects. I have been in this industry for 8 years and such jobs are my daily practice. This is my first time on this site and hence you can see that Daha Fazla
Bu iş için 10 freelancer ortalamada $111 teklif veriyor
Hello This is something I can easily wrote for you using Windows PowerShell scripting language. It will take a few hours to work out the logic but I can probably have it ready in a day. Please reach out to discuss t Daha Fazla
This can be done with simple batch script, but there's something that isn't clear. If we rename some file to only "DQ Notice" what to do if there's already such file in "C:\Reports" folder? Should file be overwritten Daha Fazla
I read your project brief. I can write a VBScript script for you that will allow you to programmatically rename the files based on the text criteria you specify. Technical details ============== For programmatical Daha Fazla
Hi there, I can do this project pretty easily using Python and regular expressions, and the end result can be whatever you like (a .bat file, a .exe file, a Python script, etc.). Can we discuss details via chat please? Daha Fazla
Hello, I'm David I can provide you perfect work as you looking for . we can discuss more in chat . I will be waiting for your response . I have very great experience about your project , if you want discuss more p Daha Fazla
Hi friend, I have morw than 7 years of experience in scripting. You can relay on me for this project. Thanks, Parth
Hello, I'm Abu Gosia. I'm interesting your project very well. I'm good in C#, .Net, MVC, Angular.js, ASP.NET, PHP, Laravel, Codeigneter, Wordpress, Open Cart. I m quite well experienced in these jobs. Let's go ahe Daha Fazla
I will provide ability to add more functions and bug resolution support without any additional cost.