Re: Using tags to create a file name
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35650
interpreted = N
texte = [date] gives you the date in 11/11/2000 format, the / conflicts withthe directory path. if you want to use it to have a unique name, you canstrip off the /s using [convertchars], alternately you can use the [cart]tag instead of using [date]-[time], is there any other reason why you areusing date-time?========================================================== _O_/\NUP Setty/ | \/ERTical Net / \ http://www.vertical.net _\ \_ 336-218-8562 Ext. 218o o o o==========================================================----- Original Message -----From: Alan
To: WebCatalog Talk Sent: Thursday, August 03, 2000 11:41 AMSubject: Using tags to create a file name> I am attempting to make a backup copy of a database file using the> [MOVEFILE] tag to move, rename and delete the existing .db file before> it is replaced with an updated version. If I use a static name the> process works correctly, if I use a tag it doesn't.>> This way works!> [MOVEFILE from=../folder1/database.db&to=../folder2/backup.db]>> This way doesn't?> [MOVEFILE from=../folder1/database.db&to=../folder2/[DATE]-[TIME].db]>> I need a different name for each backup that allows for quick> identification, the [DATE]-[TIME].db would be great if it will work. I> am however, open to other suggestions for renaming the files. All this> is being attempted on a Macintosh server using WebCatalog 3.0.8.>> Thanks,> Alan Jackson>>> -------------------------------------------------------------> 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:
[date] gives you the date in 11/11/2000 format, the / conflicts withthe directory path. if you want to use it to have a unique name, you canstrip off the /s using [convertchars], alternately you can use the [cart]tag instead of using [date]-[time], is there any other reason why you areusing date-time?========================================================== _O_/\NUP Setty/ | \/ERTical Net / \ http://www.vertical.net _\ \_ 336-218-8562 Ext. 218o o o o==========================================================----- Original Message -----From: Alan To: WebCatalog Talk Sent: Thursday, August 03, 2000 11:41 AMSubject: Using tags to create a file name> I am attempting to make a backup copy of a database file using the> [movefile] tag to move, rename and delete the existing .db file before> it is replaced with an updated version. If I use a static name the> process works correctly, if I use a tag it doesn't.>> This way works!> [MOVEFILE from=../folder1/database.db&to=../folder2/backup.db]>> This way doesn't?> [MOVEFILE from=../folder1/database.db&to=../folder2/[date]-[time].db]>> I need a different name for each backup that allows for quick> identification, the [date]-[time].db would be great if it will work. I> am however, open to other suggestions for renaming the files. All this> is being attempted on a Macintosh server using WebCatalog 3.0.8.>> Thanks,> Alan Jackson>>> -------------------------------------------------------------> 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/
Anup Setty
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:
Shopping carts and reloading pages (1997)
Bulk Email >>>>Any ideas? (2001)
Unexpected error (1997)
ShowIf variables (1997)
[addlineitems] (1997)
WebCat2: Found Items syntax, etc. (1997)
emailer w/F2 (1997)
New public beta available (1997)
I'm tired of all this! (2000)
WriteFile and returns... (2000)
Pgp&emailer (1997)
WebCat2 - storing unformatted date data? (1997)
t or f (1997)
Getting total number of items ordered (1997)
payflowpro problem #2 (2003)
WebCommerce: Folder organization ? (1997)
Limiting user access to .tmpl files (1997)
SetHeader (1997)
success - serial numbers and webmerch (1997)
Install problems on 3.08 (2000)