> Can we see your code?

Sure, watch the wrap.


<cfset theFormCadNumber = REReplace(#getForms.FormCadNumber#,"-| ","","ALL")
>

<cfif Len(theFormCadNumber) is not 0>

 <!-- Test for files existance.. if true, build the path.. can one use
UNC? -->
<cfset filePath = "P:\Inetpub\wwwroot\CAD_PDF\" &  #theFormCadNumber# &
".pdf" >

 <cfif FileExists(filePath)>
    <cfset CadExists ="true">
    <cfset theURL = "http://my.domain.com/Cad_pdf/"; & #theFormCadNumber# &
".pdf" >
<cfelse>
    <cfset CadExists ="false">
</cfif>

</cfif>


----- Original Message -----
From: "brook" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, July 28, 2002 4:29 PM
Subject: Re: FileExists WINNT Mapped Drive Permissions


> We use UNC paths. This is a better idea, because I beleive (correct me if
I
> am wring) a mapped drive is not automatically mounted at startup. So if
> your machines reboots, you wil not have access to the mapped drive until
> you log in.
>
> UNC paths are alllow with CF and work fine.
>
> Can we see your code?
>
> Brook
>
> At 02:42 PM 7/28/02 +0200, you wrote:
> >David Fafard wrote:
> > >
> > > Having a problem getting FileExists to work
> > > on an Win NT 2K Server.
> > >
> > > My Files needed to check are on a mapped
> > > drive but it seems CFMX can not see them.
> > > ( I would use UNC path but I believe that is not allowed )
> >
> >It doesn't help since it is a permmissions issue.
> >
> >
> > > I'm thinking it's a permissions thing with CFMX service
> > > running as LOCAL.
> >
> >Correct.
> >
> >
> > > Is there any way to test for a files existance without
> > > changing the service to something other than LOCAL?
> >
> >You could use cfimpersonate if you are not on MX yet. Else, change the
> >service.
> >
> >Jochem
> >
> >
> 
______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to