Ajas,
Let me guess here that you are using a Windows operating system?  UNC
(Universal Naming Convention) network paths allow for double backslash in
network paths.  What this means is that a double backslash is valid for
lower folders.

E.g.  \\fooServer\sharingFolder\\subfolder will still navigate to
\\fooServer\sharingFolder\subfolder

This is a network layer concern and not an application layer concern.


Teddy R. Payne, ACCFD
Google Talk - [email protected]



On Wed, Jul 22, 2009 at 5:18 PM, Ajas Mohammed <[email protected]> wrote:

> Hi there,
>
> I came across code today which creates a pdf document.
>
> <cfset path = "\\Netw_Share\someFolder\Test*\*">
>
> <cfdocument format="pdf" unit="in" filename="#path#\#name_of_file#.pdf"
> overwrite="yes">
>    some text here
> </cfdocument>
>
> Since, path variable already has backslash in it, I thought
> #path#\#name_of_file#.pdf would throw error, but it did not.
>
> Can someone suggest what is the so obvious I am missing here???? I was
> thinking if path var is set to \\Netw_Share\someFolder\Test i.e. without
> backslash then the code will be perfect.. but it works both ways and I am so
> confused.
>
> any suggestions???
>
>
> <Ajas Mohammed />
> http://ajashadi.blogspot.com
> We cannot become what we need to be, remaining what we are.
> No matter what, find a way. Because thats what winners do.
> You can't improve what you don't measure.
> Quality is never an accident; it is always the result of high intention,
> sincere effort, intelligent direction and skillful execution; it represents
> the wise choice of many alternatives.
>

Reply via email to