Re: help w/ services please

From: Andrew (abaylis_nos_at_spamcop.net)
Date: 12/15/03


Date: Mon, 15 Dec 2003 20:18:31 +1100

Rather than using a mapped drive / path combo to specify the file, use the
format \\server\path and it should work fine.
HTH
Andrew
"Alan S. Olson" <aolson@wi.rr.com> wrote in message
news:VqoCb.123871$Vu6.65614@twister.rdc-kc.rr.com...
> The reason for that error is that the file i'm trying to copy is on a
> network share. The localSystem obviously does not have access to any
> network shares. This si the problem. The services does nto interact w/
the
> desktop at all. This is an issue with LocalSystem not being 'network
aware'
> and not finding that path.
>
> Yes, i double/triple/quadruple checked the path. If i use the exact code
in
> a standalone program it works fine. This is network-related.
>
> Alan
>
> "Maarten Wiltink" <maarten@kittensandcats.net> wrote in message
> news:3fd9ed69$0$207$e4fe514c@news.xs4all.nl...
> > "Alan S. Olson" <aolson@wi.rr.com> wrote in message
> > news:4d9Cb.121288$Vu6.104569@twister.rdc-kc.rr.com...
> >
> > > I have a service written that, among other things, needs to copy files
> > > across a network drive and/or share. The problem when i do this is
> > > that CopyFile() failes, and GetLastError returns 3, which i believe is
> > > FileNotFound.
> >
> > "The system cannot find the path specified", according to net helpmsg.
> > Did you check the _exact_ path specified?
> >
> >
> > > I suspect this is due to security and/or rights. I changed the user
> > > which this service logs in as, and even set it to Administrator. It
> > > stills fails with GetLastError=3.
> >
> > There is rarely any need to run services under named accounts for
> > other than policy reasons. I think LocalSystem has _more_ rights than
> > Administrator.
> >
> > Does this service interact with the desktop by any chance?
> >
> > Groetjes,
> > Maarten Wiltink
> >
> >
>
>



Relevant Pages

  • Re: "Access denied, unable to connect" viewing shared print queues
    ... NullSessionPipe, SPOOLSS. ... > letting users access desktops over the network? ... > logged in user access to his own PC over the network. ... >> Alan Morris ...
    (microsoft.public.win2000.printing)
  • Re: [PATCH] Ban module license tag string termination trick
    ... Alan wrote: ... If I go into an airport, open my laptop and connect to a network called "Free WiFi network", then I might have a good case to argue that I expected the WiFi to be free. ...
    (Linux-Kernel)
  • Re: Wont Print
    ... Alan Edwards, MS MVP W95/98 Systems ... >connected to direct printer or to network printer. ... >>An error has occurred in the script on this page ... >>>One station on a NT network will not print from IE6 or ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: help w/ services please
    ... network shares. ... The services does nto interact w/ the ... This is an issue with LocalSystem not being 'network aware' ... >> which this service logs in as, and even set it to Administrator. ...
    (alt.comp.lang.borland-delphi)
  • Re: Let Us Calm Down
    ... and Alan Hope instead replied: ... have extended their network to this neck of the woods. ...
    (misc.writing)