Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
this is a followup from my previous post..
however, the conditions for the script has changed..how do i do this in a script file?
i have files in a folder with the file names similar to below:
fluffy.b1
fluffy.b14
fluffy.b25i want to write a script that will search my folder for these files, and auto delete the OLDER .b files and just leave the LATEST b file that is out there (based on file timestamp)..
thanks
Mariehttp://www.computing.net/answers/pr...
hopeless but trying

Hello Marie,
this time it's just straightforward...
@echo off
pushd \MyFolder
for /F "skip=1" %%a in ('dir fluffy.b* /B /O-D') do del %%a
popd
:: [End_Of_Batch]Another kiss, please... and don't miss Judago.

![]() |
Help!! Clipper Program vs...
|
Script to merge files in ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |