Re: delete file

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 30457
interpreted = N
texte = >I'm trying to delete cart files that are 30 hours or more old. This >doesn't seem to >be working. Can anyone tell me why? > >[math show=f]vTotHours=((({[Date]}*24)+({[Time]}/3600))-30)[/math] >[ListFiles ../ShoppingCarts/][showif [filename]>1] >[Orderfile file=../ShoppingCarts/[FileName]] >[FileName]-[math show=f]vCartHrs=(({[date]}*24)+({[time}/3600))[/math] >[showif [vTotHours]>[vCartHrs]] >[Deletefile ../shoppingcarts/[FileName]] >[/showif][/orderfile][/showif] >[/ListFiles] > Apart from the fact that your code is way to complicated for what you want to do, I would change, [Deletefile ../shoppingcarts/[FileName]] to [Deletefile ../ShoppingCarts/[FileName]] -- Micheal O Shea Email:micheal@com4u.ch com4u.ch http://www.com4u.ch Breitistrasse 7B PGP key available upon request. CH-5506 Maegenwil Tel: +41 62 896 46 26 Switzerland------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: delete file (Derek C. 2000)
  2. Re: delete file (Michael O Shea 2000)
  3. delete file (Brian Grinde 2000)
  4. Re: Delete file through browser (PCS Technical Support 1999)
  5. Re: Delete file through browser (Kenneth Grome 1999)
  6. Delete file through browser (Donovan Rittenbach 1999)
>I'm trying to delete cart files that are 30 hours or more old. This >doesn't seem to >be working. Can anyone tell me why? > >[math show=f]vTotHours=((({[date]}*24)+({[time]}/3600))-30)[/math] >[ListFiles ../ShoppingCarts/][showif [filename]>1] >[Orderfile file=../ShoppingCarts/[FileName]] >[FileName]-[math show=f]vCartHrs=(({[date]}*24)+({[time}/3600))[/math] >[showif [vTotHours]>[vCartHrs]] >[Deletefile ../shoppingcarts/[FileName]] >[/showif][/orderfile][/showif] >[/ListFiles] > Apart from the fact that your code is way to complicated for what you want to do, I would change, [Deletefile ../shoppingcarts/[FileName]] to [Deletefile ../ShoppingCarts/[FileName]] -- Micheal O Shea Email:micheal@com4u.ch com4u.ch http://www.com4u.ch Breitistrasse 7B PGP key available upon request. CH-5506 Maegenwil Tel: +41 62 896 46 26 Switzerland------------------------------------------------------------- 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 Michael O Shea

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:

rn doesn't work on date fields (1998) Off-topic: Cheap hosting (but not webdna) ... (2002) WebCatalog can't find database (1997) WebCat 4.0 & WebMerchant (2000) Country & Ship-to address & other fields ? (1997) looking for developers with solutions (2000) Applescript, WebDNA, and PDF (1997) THE ANSWER - why .HTML pages no processing? (2000) [WebDNA] Page names changing (2010) [cart] not being interpreted inside [founditems] (1997) Sku numbers (1997) Creating folders and deleting files (1997) Mozilla/4. and Browser Info.txt (1997) Emailer Problem (1999) Need relative path explanation (1997) WebCat2 - Getting to the browser's username/password data (1997) MacAuthorize Problem (1998) WebCat vs. ASP (1999) E-Mail Preferences in Admin Folder (1997) Sample Tearoom Search Error (1997)