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:

How to sell events to customer and his guests?? (2005) Plugin or CGI or both (1997) SendTo more emails (1998) To brighten your day... (2006) ShowNext Context (2004) suffix mapping for NT? (1997) PCS Frames (1997) Problems appending to database (1997) Sorting by date (1997) Can't get appendfile to work (1997) WebDNA deletes major DB data big time (2004) Capturing the referring site (1999) Invoice Data Fields (1999) Re1000001: Setting up shop (1997) HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) NY taxRates.db? (1997) Location of Browser Info.txt file (1997) HELP! 10K hits per hour for pages that no longer exist! (2000) A quickie question (1997) _ in front of field name (1998)