Re: ListFiles then delete by ModDate
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44434
interpreted = N
texte = Hi Stuart,That will help that one then ;-) but I also need to do as described for another job that creates a couple of non-cart temp files and directories.TimOn Monday, 28 October 2002 3:52 PM, Stuart Tremain
wrote:>Obsolete shopping carts are deleted every 24 hours>>>>>On Monday, October 28, 2002, at 03:47 PM, Tim Robinson wrote:>>> Hi there,>>>> This seems simple enough, but I seem to be going round and round in >> circles. Is there an 'approved' method for this? I simply want to set >> up a triggered file to delete obsolete shopping carts.>>>> I want to do a [showif], but the [moddate] is causing problems... I've >> tried a [getchars] to break it up into the right format for a >> [math]{[date]}[/math] type thingy, but [moddate] displays no leading >> zeros. That is, it doesn't display 02/02/02, it displays 2/2/02 which >> throws out the [getchars].>>>> I've tried doing a listwords (below)>>>> [ListFiles path=../docs/ShoppingCarts/]>> [ListWords Words=[ModDate]&Delimiters=/]>> [showif [index]=2][word][/showif]/[showif >> [index]=1][word][/showif]/20[showif [index]=3][word][/showif]
>> [/ListWords]>> [/Listfiles]>>>> but the [index] here seems to get mixed up with the [index] of the >> [listfiles] loop.>>>> Does anyone have some sage words?>>>> Regards,>> Tim>>>>>>>>>> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://search.smithmicro.com/>>>>>Regards>>Stuart Tremain>idfk web developments>114a/40 yeo street neutral bay 2089 australia>t +612 9908 2134>f +612 9908 4837>>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://search.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi Stuart,That will help that one then ;-) but I also need to do as described for another job that creates a couple of non-cart temp files and directories.TimOn Monday, 28 October 2002 3:52 PM, Stuart Tremain wrote:>Obsolete shopping carts are deleted every 24 hours>>>>>On Monday, October 28, 2002, at 03:47 PM, Tim Robinson wrote:>>> Hi there,>>>> This seems simple enough, but I seem to be going round and round in >> circles. Is there an 'approved' method for this? I simply want to set >> up a triggered file to delete obsolete shopping carts.>>>> I want to do a [showif], but the [moddate] is causing problems... I've >> tried a [getchars] to break it up into the right format for a >> [math]{[date]}[/math] type thingy, but [moddate] displays no leading >> zeros. That is, it doesn't display 02/02/02, it displays 2/2/02 which >> throws out the [getchars].>>>> I've tried doing a listwords (below)>>>> [ListFiles path=../docs/ShoppingCarts/]>> [ListWords Words=[ModDate]&Delimiters=/]>> [showif [index]=2][word][/showif]/[showif >> [index]=1][word][/showif]/20[showif [index]=3][word][/showif]
>> [/ListWords]>> [/Listfiles]>>>> but the [index] here seems to get mixed up with the [index] of the >> [listfiles] loop.>>>> Does anyone have some sage words?>>>> Regards,>> Tim>>>>>>>>>> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://search.smithmicro.com/>>>>>Regards>>Stuart Tremain>idfk web developments>114a/40 yeo street neutral bay 2089 australia>t +612 9908 2134>f +612 9908 4837>>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://search.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Tim Robinson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
shipcost - cleaner with a table (1998)
Databases inside [SHOWIF] (1998)
price formula (1999)
Mac 2.1b2 speed (1997)
[carts] and databases (1997)
Hierarchy of form/text/math variables (renamed thread) (2000)
Command=Showcart? (2000)
Re[2]: Field Problem (2000)
Access to shopping cart files (2005)
4.5 on Apache 2 (2005)
show all problem (1997)
SandBox and ImageMagick (2003)
searching by part of the date information (1999)
update on wn searching (1997)
Q: writefile and uploads. (1998)
Cancel Subscription (1996)
randomness (1997)
Change to 5.0 per website licensing (2003)
Interfacing WebMerchant to www.fedex.com (1997)
[date format] w/in sendmail (1997)