Good suggestion on the CF Service Account..
thanks.

Dave

----- Original Message -----
From: "Mike Byers" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, July 29, 2002 11:11 AM
Subject: RE: FileExists WINNT Mapped Drive Permissions


> I agree with Brook.  Try UNC paths.  Also you may have to set up a CF
> service account with basic network privileges to be able to browse the
> network, so to speak, and run the CF service as that account.  Be sure to
> add that user to your Administrators group on the local machine so that it
> reserves the same rights it had as the local system account.
>
> Hope that helps.
>
> Mike
>
> -----Original Message-----
> From: David Fafard [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 28, 2002 3:32 PM
> To: CF-Talk
> Subject: Re: FileExists WINNT Mapped Drive Permissions
>
>
> > 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
> > >
> > >
> >
>
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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