Hi Nicholas, Thanx 4 a nice solution, but sorry to say that this is not what I exactly wanted. I mean I want to know the code to roam through the directory, i. e. to pick up the files one by one. Hope u understand wat I need.
W8ing 4 ur prompt response Animesh � On Wed, 04 May 2005 Driver,Nicholas wrote : >Hi Animesh >I was working on something very similar using VBScript but have since given >up (the website I was working on will almost certainly be replaced in a new >redevelopment. >Here's the pseudo code for what I was working on (hope it helps) >Define MyDate as 'Date' >����� MyDate = 04/05/2005 >Change MyDate to 8-digit number (replace "/" with "") >����� MyDate = 04052005 >Crop MyDate >MyDay = left(MyDate, 2) >MyMonth = mid(MyDate, 3,2) >MyYear = right(MyDate, 4) >'����� MyDay = 04 >'����� MyMonth = 05 >'����� MyYear = 2005 >'Recompose MyDate as "international" >MyDate = MyYear & MyMonth & MyDay >����� MyDate = 20050504 >Filename = (prefix & MyDate & suffix) >����� Filename = file_20050504.xls >'list through the directory >Crop Filename (mid (Filename, 9, 2) >����� sortfile = 05 >If sortfile < current date then FSO Delete >Let me know what you think >cheers >Nick >Date: Tue, 03 May 2005 09:19:17 -0000 >�� From: "Animesh K. Mishra" <[EMAIL PROTECTED]> >Subject: Fiding file with a particular naming convention. >Hi, >��� I have an application in C# that creates excel files with a >particular naming convention (Filename_Date_time.xls)and saves it to >the disc.For space management I want to add one more function to it >that will search for the files more than 24 hours old and delete them. >Can anyone please help... Its urgent. >Waiting impatiently for ur response >Animesh >-------------------------------------------------------------------------------- >This E-Mail is intended only for the addressee. Its use is limited to that >intended by the author at the time and it is not to be distributed without the >author's consent. Unless otherwise stated, the State of Queensland accepts no >liability for the contents of this E-Mail except where subsequently confirmed >in >writing. The opinions expressed in this E-Mail are those of the author and do >not necessarily represent the views of the State of Queensland. This E-Mail is >confidential and may be subject to a claim of legal privilege. >If you have received this E-Mail in error, please notify the author >and delete this message immediately. >-------------------------------------------------------------------------------- >!DEPTSTAMP1! >Yahoo! Groups Links >To visit your group on the web, go to: >http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ >� > >To unsubscribe from this group, send an email to: >[EMAIL PROTECTED] >� > >Your use of Yahoo! Groups is subject to the >Yahoo! Terms of Service >. > [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
