Subject | Re: UDF for checking if an external file exists |
---|---|
Author | Kjell Rilbe |
Post date | 2008-04-16T07:22:23Z |
Helmut Steinberger wrote:
sure the user that the service runs under actually HAS that drive
mapping. I'm not even sure drive mappings are applied when it's a
service that logs on without a shell/desktop.
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
> So I have to convert the path to UNC but that doesn't work withDrive mappings are per user in Windows if I'm not mistaken. So, make
> ExpandUNCFileName.
>
> Example:
> F is a mapped networkdrive to \\server\server_e\
> If I use
> filename := ExpandUNCFileName ('F:\mypath\myfilename')
>
> I get F:\mypath\myfilename in the variable filename allthough it
> should be \\server\server_e\mypath\myfilename.
> In a testapplication it works correct, but it doesn't in an UDF dll.
sure the user that the service runs under actually HAS that drive
mapping. I'm not even sure drive mappings are applied when it's a
service that logs on without a shell/desktop.
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64