Search found 2 matches

by Chris1985
28 Jan 2019 01:40
Forum: DOS Batch Forum
Topic: delete files in Folder with version-stamp
Replies: 4
Views: 5026

Re: delete files in Folder with version-stamp

Hi

thanks
it works with the correct "date created", but i must copy all files to another location an there changed the created time.
Would it be possible than the batch can the "date modified" time used? This time are not changed on copy......


Thanks for help
Chris
by Chris1985
27 Jan 2019 10:53
Forum: DOS Batch Forum
Topic: delete files in Folder with version-stamp
Replies: 4
Views: 5026

delete files in Folder with version-stamp

Hi I need a batch file for delete of many files with a version-stamp. I have found a Code for the newest file in a folder, but i dont now rebuild it. @echo off & setlocal set "MySearchString=_" for /r %%a in (*) do for /f "delims=" %%i in ('echo("%%~na" ^| findstr /i "%MySearchString%"') do del "%%~...