Re: [movefile]
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23308
interpreted = N
texte = > Right. But if this is a Windows NT machine, you can't have a / in a>>filename since that character is a reseved character for navigating>>directories and the NTFS file structure. So, if this is a windows NT>>machine, you can't say [date].tmpl since it can't create a filename with a>>/ in it.>>What you CAN do is say something like [date %m%d%Y].tmpl. That'll have the>>date information that you need, minus those pesky /'s.>>>Tried that as well. Still no luck. It works as expected if I do something like>[movefile from=something.tmpl&to=[cart].tmpl] but not for the [date] tag.It works as expected, you just expect the wrong thing. If I were to use:[movefile from=something.tmpl&to=[date].tmpl]then I would expect webcat to rename the something.tmpl file to 1999.tmpl, then put it into the 04 folder that's inside the 02 folder. If that's not what you want it to do, you need to change the date format so there are no slashes in it, then webcat will not think you're giving it a folder/subfolder path that does not exist ... :)Sincerely,Ken Grome
Associated Messages, from the most recent to the oldest:
> Right. But if this is a Windows NT machine, you can't have a / in a>>filename since that character is a reseved character for navigating>>directories and the NTFS file structure. So, if this is a windows NT>>machine, you can't say
[date].tmpl since it can't create a filename with a>>/ in it.>>What you CAN do is say something like [date %m%d%Y].tmpl. That'll have the>>date information that you need, minus those pesky /'s.>>>Tried that as well. Still no luck. It works as expected if I do something like>[movefile from=something.tmpl&to=
[cart].tmpl] but not for the
[date] tag.It works as expected, you just expect the wrong thing. If I were to use:[movefile from=something.tmpl&to=
[date].tmpl]then I would expect webcat to rename the something.tmpl file to 1999.tmpl, then put it into the 04 folder that's inside the 02 folder. If that's not what you want it to do, you need to change the date format so there are no slashes in it, then webcat will not think you're giving it a folder/subfolder path that does not exist ... :)Sincerely,Ken Grome
Kenneth Grome
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:
Extended [ConvertChars] (1997)
Email (1998)
There's a bug in the math context ... (1997)
linetiems in thankyou.tpl (1997)
webcat NT (1998)
[WebDNA] File Upload Problem - FIXED! (2009)
Finding max value for a field (1997)
system crashes, event log (1997)
Mixing and/or in searches (1998)
Sample Tearoom Search Error (1997)
multi-paragraph fields (1997)
Why is my easy [AddLineItems] NOT working?? (2000)
Location of Webcat site in folder hierarchy (1997)
rnsearch on date (2003)
OFF-TOPIC: WebDNA hosting ... (2003)
Sending an email to all )or some) email addresses int he database (1999)
[/application] error? (1997)
[ShowNext] (1997)
different show next (1997)
WC 4? (2001)