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:

    
  1. Re: [WebDNA] my spawned [purchase] seems to be losing the orderfile. ... [MOVEFILE] workaround? (Kenneth Grome 2009)
  2. [WebDNA] my spawned [purchase] seems to be losing the orderfile. ... [MOVEFILE] workaround? (Govinda 2009)
  3. Re: [movefile] prob *solved* ( "Dan Strong" 2005)
  4. Re: [movefile] prob ( "Dan Strong" 2005)
  5. Re: [movefile] prob ( John Peacock 2005)
  6. Re: [movefile] prob ( "Dan Strong" 2005)
  7. Re: [movefile] prob ( John Peacock 2005)
  8. [movefile] prob ( "Dan Strong" 2005)
  9. Re: [MOVEFILE] question ( Mark Derrick 2004)
  10. Re: [MOVEFILE] question ( Jesse Proudman 2004)
  11. Re: [MOVEFILE] question ( Mark Derrick 2004)
  12. Re: [MOVEFILE] question ( "Nitai @ ComputerOil" 2004)
  13. [MOVEFILE] question ( Mark Derrick 2004)
  14. Re: [MoveFile] (dale 2000)
  15. Re: [MoveFile] (Bob Sneidar 2000)
  16. [MoveFile] (Stuart Tremain 2000)
  17. Re: [moveFile] Question (PCS Technical Support 1999)
  18. Re: [moveFile] Question (Charles Kline 1999)
  19. [moveFile] Question (Phil Marshall 1999)
  20. Re: [movefile] (Kenneth Grome 1999)
  21. RE: [movefile] (Olin Lagon 1999)
  22. Re: [movefile] (PCS Technical Support 1999)
  23. Re: [movefile] (Mícheál O Sé 1999)
  24. Re: [movefile] (Mícheál O Sé 1999)
  25. Re: [movefile] (Mícheál O Sé 1999)
  26. Re: [movefile] (Mícheál O Sé 1999)
  27. Re: [movefile] (Howard Wolosky 1999)
  28. Re: [movefile] (Mícheál O Sé 1999)
  29. Re: [movefile] (Howard Wolosky 1999)
  30. [movefile] (Mícheál O Sé 1999)
  31. [movefile] (Mícheál O Sé 1999)
  32. Corrupted filetypes with [movefile] (Michael Winston 1998)
  33. Re: [movefile] create stationery files (Rob Marquardt 1998)
  34. Re: [movefile] create stationery files (PCS Technical Support 1998)
  35. [movefile] create stationery files (Rob Marquardt 1998)
  36. [movefile] ( This)
> 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)