On May 25, 2016 8:58:11 PM GMT+02:00, "Santiago A." <s...@ciberpiula.net> wrote: >El 24/05/2016 a las 21:46, Leonardo M. Ramé escribió: >> Hi, My app is a CGI running on Windows2012 (IIS 7.0), it needs to >save >> a file to a remote UNC or Mapped drive, but when I check using >> DirectoryExists in both cases I get False, but of course the UNC and >> mapped drive exists. >> >> Any hint?. >> >> Regards, >Not sure 100%, but I think that mapped drives only work when a user >opens a desktop session. Services don't know about mapped drives. Think >of it, in the same server, different users may map the same network >resource with a different letter.
Correct. Drivemappings are user specific. You get the same if you want to run something as administrator from a mapping. >Instead of mapped drives I think you should use \\server\resource, and >the user who runs the service that calls the CGI must have permission >on >that resource. If the service is run as "Local system", I don't know >how >to grant permission in a remote machine. Depends on windows version, iirc on modern versions local system (or was it local service) it has no network access Marc -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus