FileExists with UNC Path with a Service.

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: RL Tech (tech_support_at_nospamuls.com)
Date: 12/02/04


Date: Thu, 2 Dec 2004 11:29:11 -0700

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.



Relevant Pages

  • Setting folder permissions
    ... The directory will be in a filestore server so I am passing in a UNC path. ... so I need to take those permissions into consideration. ... drop folder, it does get moved, though if I copy 2 files into the drop ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Configuration Manager Distribution Points
    ... Resolved by pointing the Data Source directory locally rather than using a ... UNC path as I have used with SMS 2003. ... full control but these permissions seem to be overridden by other security ... When I look at the Package Status, it remains at Install Pending. ...
    (microsoft.public.sms.setup)
  • Re: Grant FullTrust permissions to VS .NET Projects on Network (Intranet) share
    ... sure you're using the same UNC path when opening the project in VStudio. ... Also, if you're using the server IP address, try switching to using the ... When I evaluate the permissions for the ...
    (microsoft.public.dotnet.framework)
  • Re: Task scheduling : error 0x80070005: Access denied
    ... Does your user have permissions to write to \\Cypher\BackupServiceDev\? ... If not try using a UNC path for it. ... Dave Patrick ....Please no email replies - reply in newsgroup. ...
    (microsoft.public.windows.server.general)
  • Re: Isolate home directory shares
    ... You cannot prevent someone from using a UNC path, ... permissions, they still cannot access the share. ... bind to the share and set a flag in the security descriptor. ... How can i isolate a user's home directory whereby access is only given ...
    (microsoft.public.windows.server.general)