Re: FileExists with UNC Path with a Service.
From: RL Tech (tech_support_at_nospamuls.com)
Date: 12/02/04
- Next message: Michael D. Ober: "Re: Intellisense Not Working - VB6sp5"
- Previous message: Lead Foot: "excel opened by VB program gives error when closed prior closing p"
- In reply to: Tony Proctor: "Re: FileExists with UNC Path with a Service."
- Next in thread: Mike D Sutton: "Re: FileExists with UNC Path with a Service."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Dec 2004 12:46:37 -0700
Hi Tony,
Thank you... that's what the problem was... This is good to know!
It was set up to use the local system pseudo-account... i changed the
account to use the network admin account, and it now works the way it is
supposed to.
Again, thanks!
...Robin
"Tony Proctor" <tony_proctor@aimtechnology_NoMoreSPAM_.com> wrote in message
news:e4F9U9J2EHA.304@TK2MSFTNGP11.phx.gbl...
> Is the service running under a specific account, or the default
LocalSystem
> pseudo-account? I ask because the LocalSystem account doesn't have any
> network access. Hence, if your UNC specification is referring to a
different
> machine then it will fail.
>
> Tony Proctor
>
> "RL Tech" <tech_support@nospamuls.com> wrote in message
> news:uXbQOzJ2EHA.3504@TK2MSFTNGP12.phx.gbl...
> > Hi,
> > I have an app that is supposed to check a unc path for the existance of
a
> > file...
> > ie: \\computer\\folder\file.xml
> >
> > When i run the "fileexists" (numerous, on the net), and when run in the
> DEV
> > as well as compiled, works fine (returns true).
> >
> > When i try and run the same program as a NT Service, i am told that the
> file
> > doesn't exist...
> >
> > This is the Statement in the "FileExists" .
> > FileExists = (Dir$(FileName) <> "")
> >
> > Pretty basic and it always works... except with UNC paths, on a
service...
> >
> > Does anyone have any clue to why this may be happening?
> > I did check the permissions, and added my computer (thinking that it was
a
> > permissions/security issue to the folder, but no change there...)...
> >
> > Thanks.
> >
> >
>
>
- Next message: Michael D. Ober: "Re: Intellisense Not Working - VB6sp5"
- Previous message: Lead Foot: "excel opened by VB program gives error when closed prior closing p"
- In reply to: Tony Proctor: "Re: FileExists with UNC Path with a Service."
- Next in thread: Mike D Sutton: "Re: FileExists with UNC Path with a Service."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|