Computing.Net > Forums > Programming > IVO and Judago - Script for Marie

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

IVO and Judago - Script for Marie

Reply to Message Icon

Name: einstein8
Date: October 14, 2008 at 09:17:24 Pacific
OS: XP
CPU/Ram: 1.8Ghz/2Gb
Product: Dell
Comment:

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.b25

i 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
Marie

http://www.computing.net/answers/pr...

hopeless but trying



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: October 14, 2008 at 09:37:18 Pacific
Reply:

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.


0

Response Number 2
Name: Judago
Date: October 14, 2008 at 13:58:27 Pacific
Reply:

I don't think I'm needed here....


0

Response Number 3
Name: einstein8
Date: October 15, 2008 at 07:07:39 Pacific
Reply:

works like a charm IVO.... thank you!! ;)
Judago.. lolz

hopeless but trying


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Help!! Clipper Program vs... Script to merge files in ...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: IVO and Judago - Script for Marie

IVO and Judago - Still on Copying www.computing.net/answers/programming/ivo-and-judago-still-on-copying/17131.html

IVO, Judago - Clean-up Script www.computing.net/answers/programming/ivo-judago-cleanup-script/17624.html

How to Do this in a Script File www.computing.net/answers/programming/how-to-do-this-in-a-script-file/17099.html