[showif [pic_filename]>]old file path= [text show=t]oldfile=[pic_filename][/text] [showif [pic_filename]>]old file path= [text show=t]oldfile=[pic_filename][/text] DOWNLOAD WEBDNA NOW! 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...
[DELETEFILE file=/pics/[pic_filename]][/showif][showif [fileinfo /pics/[country]/][exists][/fileinfo]=F] [country]xx
[createfolder /pics/[country]][/showif][showif [country]=USA][country]zz
[showif [state]!] [state] [showif [fileinfo /pics/[country]/[state]][exists][/fileinfo]=F] [createfolder /pics/[country]/[state]] [/showif] [/showif][/showif][showif [country]=USA]imagepath = [imagepath]
imagename= [imagename]
country = [country]
state = [state]
[movefile from=PostNewPics/[imagename]&to=/pics/[country]/[state]/[imagename]][Replace db=/members.db&eqRecord_IDdata=[record_id]]pic_filename=[country]/[state]/[imagename]&date_updated=[date]&pic_height=&pic_width=&TimeUpdateSrt=[math]{[TIME]}[/math]&dateUpdateSrt=[math]{[date]}[/math]&LastPicUpdate=[math]{[date]}[/math][/Replace][SendMail to=[email]&from=members@bear.net&subject=A picture for[first_name] has been added]This is an automatic email. Pleasedo not reply to this message as it will not be read.email content[/SendMail] [/showif][showif [country]!USA]imagepath = [imagepath]
imagename= [imagename]
country = [country]
[movefile from=PostNewPics/[imagename]&to=/pics/[country]/[imagename]] [Replace db=/members.db&eqRecord_IDdata=[image_id]]pic_filename=[country]/[imagename]&date_updated=[date]&dateUpdateSrt=[math]{[date]}[/math]&pic_height=&pic_width=&TimeUpdateSrt=[math]{[TIME]}[/math]&LastPicUpdate=[math]{[date]}[/math][/Replace][SendMail to=[email]&from=members@bear.net&subject=A picture for[first_name] has been added]This is an automatic email. Pleasedo not reply to this message as it will not be read.email content[/SendMail][/showif][/founditems][/search]--- end code ----------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
Hello,WebStar 4.4, WebCatalog 3.0.7I have a piece of code that does the following:* lists all files in a particualr directory* stores various file information about each file into a temp db* decides how many records to act upon based on how many recordsthere are* grabs the filename, minus the file extension and uses thatinfo to look up a record in another database* then moves the file to a particular folder based on criteriastored in the second database for that particular record.* sends an email to the owner of that record letting them knowthe record has been updated.This has worked fine so it seems for some time. However, on 3occasions I have found that the file does not get deleted. Itends up getting copied and not deleted. The file is NOT locked.What ends up happening is that the owner of that record keepsgetting emails every hour (this process is called by a trigger)until I manually delete the file.Any ideas about why [movefile] occasionally will not work?--- code ---[search db=/members.db&eqRecord_idData=[image_id]]number found =[numfound]
[founditems][record_id] - [nickname], [hasthumb], [pic_filename] -[image_id], [imagename]
[DELETEFILE file=/pics/[pic_filename]][/showif][showif [fileinfo /pics/[country]/][exists][/fileinfo]=F] [country]xx
[createfolder /pics/[country]][/showif][showif [country]=USA][country]zz
[showif [state]!] [state] [showif [fileinfo /pics/[country]/[state]][exists][/fileinfo]=F] [createfolder /pics/[country]/[state]] [/showif] [/showif][/showif][showif [country]=USA]imagepath = [imagepath]
imagename= [imagename]
country = [country]
state = [state]
[movefile from=PostNewPics/[imagename]&to=/pics/[country]/[state]/[imagename]][Replace db=/members.db&eqRecord_IDdata=[record_id]]pic_filename=[country]/[state]/[imagename]&date_updated=[date]&pic_height=&pic_width=&TimeUpdateSrt=[math]{[time]}[/math]&dateUpdateSrt=[math]{[date]}[/math]&LastPicUpdate=[math]{[date]}[/math][/Replace][SendMail to=[email]&from=members@bear.net&subject=A picture for[first_name] has been added]This is an automatic email. Pleasedo not reply to this message as it will not be read.email content[/SendMail] [/showif][showif [country]!USA]imagepath = [imagepath]
imagename= [imagename]
country = [country]
[movefile from=PostNewPics/[imagename]&to=/pics/[country]/[imagename]] [Replace db=/members.db&eqRecord_IDdata=[image_id]]pic_filename=[country]/[imagename]&date_updated=[date]&dateUpdateSrt=[math]{[date]}[/math]&pic_height=&pic_width=&TimeUpdateSrt=[math]{[time]}[/math]&LastPicUpdate=[math]{[date]}[/math][/Replace][SendMail to=[email]&from=members@bear.net&subject=A picture for[first_name] has been added]This is an automatic email. Pleasedo not reply to this message as it will not be read.email content[/SendMail][/showif][/founditems][/search]--- end code ----------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
Top Articles:
Talk List
Related Readings:
Where can I download to test? (2003)
Email Formatting and Encryption (1998)
Cancel Subscription (1996)
Re:trouble (1997)
FREE Web Server Monitor FREE (1997)
WebCat2b15MacPlugin - showing [math] (1997)
What are SMSI's upgrade policies? (2003)
problems with 2 tags shakur (1997)
How About Credit Card Transactions (1998)
searching multiple databases in single search (1997)
Math with Time (1997)
OH MY GOD! (1998)
Many $WebCat.exe processes (1998)
Why does this not work? (2002)
webcat error log (1998)
[WebDNA] [BULK] WebDNA AJAX example wanted! (2010)
Help name our technology! I found it (1997)
Text variables do not show (1999)
Mac v. NT (1998)
default value from Lookup (was Grant, please help me) (1997)