A Windows batch script to delete backup files from a folder

I need a Windows batch script which goes through the content of one folder and removes all files which meet all the following criteria:

- the file name is in the following format: [login to view URL] (where YYYYMMDD denotes a date)

- the file is older than 15 days (the file creation or modification date can be taken or also the YYYYMMDD part of the file name can be used)

- DD is not "01" in the filename (so basically files having a name of [login to view URL] should not be deleted).

Originally I had the following operation but this one does not support the last requirement. So this line needs to be rewritten.

forfiles /p "C:\DB Backup\SCM-TEST" /m SCM-TEST????????.bak /D -15 /C "cmd /c del @path"

Beceriler: DOS, Powershell

Daha fazlasını gör: linux example script delete owner files, script search xml files folder string, windows batch script call scheduled task, cgi script delete selected files, windows batch script line break, php script delete selected files server, windows batch script, script count excel files folder, windows batch script moving files, windows batch script basics, script delete temp files local profiles remote, linux script delete temp files, perl script count lines files folder, windows batch script linebreak, windows batch script delete oldest file, batch script to rename files in a folder, batch script to zip files in windows

İşveren Hakkında:
( 15 değerlendirme ) Budapest, Hungary

Proje NO: #23979777



Hi I can create a powershell script to accomplish this backup file deletion task. Will include the exception for SCM-TEST??????[login to view URL] files too.

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% EUR
(30 Değerlendirme)

Bu iş için 7 freelancer ortalamada €32 teklif veriyor


I am good in bat and powershell script along with automation and development, please let me know if you are good to award this project to me

€30 EUR in 3 gün içinde
(30 Değerlendirme)

Hi, I'll write a batch or powershell script to complete your task mentioned in the project description. Best,

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

Hello ! I can do this in vbscript procedure (vbs files run the same way as bat files). Thank You. Regards, Alexei.

€20 EUR in 4 gün içinde
(1 Yorum)

Hi, I can help you with your script. Let chat with me if you need more information about my experience. The request is clear. Regards

€35 EUR in 3 gün içinde
(0 Değerlendirme)

Hi, I’m devops engineer and strong in powershell scripting. I can write a new script for you to do the job easily Chat to me so we can make thing clearer Thank you.

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

Hello, talented software engineer over here. Just tell what you need and will help you get the job done.

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