I also notice that that put the name of the file out is there any way to clear that out?
-----Original Message----- From: Ben Doom [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 1:36 PM To: CF-Talk Subject: RE: cfdirectory Oops. Typo. Too many parens. Try: <cfset uppath=rereplace(GetBaseTemplatePath(), "[^\]+\\$", "")> This isn't a tested copy, btw. It's cut down from something more complex I did. But it ought to give a good idea of what to do, even if it doesn't work. If it doesn't make sense, I'd be happy to explain, but let's move over to CF-RegEx where this particular solution would be more on-topic. --Ben Doom Programmer & General Lackey Moonbow Software : -----Original Message----- : From: Webmaster [mailto:[EMAIL PROTECTED]] : Sent: Wednesday, September 11, 2002 1:33 PM : To: CF-Talk : Subject: RE: cfdirectory : : : I got this error when trying to do that.. : : : Error Diagnostic Information : Just in time compilation error : : Invalid parser construct found on line 9 at position 45. ColdFusion was : looking at the following text: : : , : Invalid expression format. The usual cause is an error in the expression : structure. : : : : : -----Original Message----- : From: Ben Doom [mailto:[EMAIL PROTECTED]] : Sent: Wednesday, September 11, 2002 11:35 AM : To: CF-Talk : Subject: RE: cfdirectory : : : It's easy enough to get the current directory and strip off the : last folder. : Something like: : : <cfset uppath=rereplace(GetBaseTemplatePath()), "[^\]+\\$", "")> : : There may be a more efficient way to do this (anyone?) but this type of : thing has worked for me. : : : : --Ben Doom : Programmer & General Lackey : Moonbow Software : : : -----Original Message----- : : From: Webmaster [mailto:[EMAIL PROTECTED]] : : Sent: Wednesday, September 11, 2002 12:32 PM : : To: CF-Talk : : Subject: cfdirectory : : : : : : Is there any way to use cfdirectory this way in CF 4.5: : : : : <cfdirectory ACTION="directory action" : : DIRECTORY="../directory/files"> : : : : I know if I do it this way it will work. : : : : <cfdirectory ACTION="directory action" : : DIRECTORY="c:\directory\files"> : : : : : : : : ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists