Re: searching for last file in a directory

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22550
interpreted = N
texte = But this should only work in 3.0, otherwise you have to store the filenames in a temporary database;-)(i like the 3.0 solution better ;-)/Martin >>Hi there! >> >>Has anyone a handy solution for displaying the last file (alphabetically) >>in a given subdirectory? >> >>like >> >>afolder/01.pic >>afolder/02.pic >>afolder/03.pic >>afolder/04.pic <-- this one needs to be displayed >> >>It has to do something with [listfiles], but I cant get any further > >[ListFiles] >[TEXT]lastFile=[FileName][/TEXT] >[/ListFiles] > >The file you want to display is: [lastFile] > > ************************************************************* > Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 > Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 > Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: searching for last file in a directory (Kenneth Grome 1999)
  2. Re: searching for last file in a directory (Martin Bech 1999)
  3. Re: searching for last file in a directory (Christer Olsson 1999)
  4. searching for last file in a directory (Matthias Precht 1999)
But this should only work in 3.0, otherwise you have to store the filenames in a temporary database;-)(i like the 3.0 solution better ;-)/Martin >>Hi there! >> >>Has anyone a handy solution for displaying the last file (alphabetically) >>in a given subdirectory? >> >>like >> >>afolder/01.pic >>afolder/02.pic >>afolder/03.pic >>afolder/04.pic <-- this one needs to be displayed >> >>It has to do something with [listfiles], but I cant get any further > >[listfiles] >[text]lastFile=[FileName][/TEXT] >[/ListFiles] > >The file you want to display is: [lastFile] > > ************************************************************* > Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 > Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 > Sweden http://www.ljusaideer.se Martin Bech

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:

[Sum] function? (1997) [ShowNext] feature in 2.0 (1997) syntax question, not in online refernce (1997) NewCart+Search with one click ? (1997) WordBreak Qestion (part 2) (1998) Not seeing cart info on Invoice.tmpl (was PROBLEM) (1997) WebCAT has the devil in it! (2003) WebCat, The Trend, & Consolidating... (1997) WebDelivery downloads alias, not original ? (1997) using listfiles to build a database? (2000) WebDNA tags in WebMerchant email templates ... (1997) WebCommerce: Folder organization ? (1997) Re2: frames & carts (1997) WebCat2.0 acgi vs plugin (1997) Emailer (1997) Hiding the URL(was Cart ID Duplication) (2001) WebCatalog and directory indexing (1998) Busy WebCatalog (2000) off topic - dna snipets (1997) Hard Questions ? (1997)