Search, Rename and Move Files

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

Beceriler: Scripting, VBScript

Daha fazlasını gör: cron move files server, search replace text files, search unix log files, perforce move files keep history, svn rename file without losing history, svn rename file keep history, svn rename file, p4 rename, tortoise svn rename file, perforce move directory with history, p4 move multiple files, python, programming, bash shell script find move files, move files directory days, move files cron, script move files using excel file, script search xml files folder string, vbscript move files based count, editing pdf files line

İşveren Hakkında:
( 2 değerlendirme ) Milwaukee, United States

Proje NO: #17527603



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

%selectedBids___i_period_sub_7% gün içinde 40%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(1 Yorum)

Bu iş için 10 freelancer ortalamada $111 teklif veriyor

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

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

in %bids___i_period_sub_35% gün içinde111%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)

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

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

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

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

Hi friend, I have morw than 7 years of experience in scripting. You can relay on me for this project. Thanks, Parth

in %bids___i_period_sub_35% gün içinde55%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

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

in %bids___i_period_sub_35% gün içinde244%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

I will provide ability to add more functions and bug resolution support without any additional cost.

in %bids___i_period_sub_35% gün içinde75%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)