Problem with xcopy in Scheduled Task

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,
I've already saw messages related to this problem but none solved mine
:
I have a batch file which source code is :

xcopy /Y /S C:\source.txt \\my_server\dest.txt

If I run this script manually (double-click), it works : the file is
copied.

If I try to make it run with the Windows Scheduled Task, it fails the
both ways I tried :
- if I specifY "System" in the "run as" field in the task property
window ("NT AUTHORITY\SYSTEM" is then written automatically), the task
seems to run but the "last result" indicates "0x4" and the file is not
copied.
- if I specify "Administrator" ("INTRANET\ADMINISTRATOR" put
automatically) (Administrator has full rights, I am logged as
Administrator on the local machine AND on the remote one), I have the
"could not start" status and obviously the file is not copied.

What am I missing ? Can somebody help me ?

Thanks in advance.

.



Relevant Pages

  • Re: Making an Input Button
    ... In this case, you want to take the identifier of an administrator and add it to some sort of knowledge base (source code, the way you described it). ... The point is, the storage place for data, also called a "data store", is in some storage medium that is not the Java code. ...
    (comp.lang.java.programmer)
  • Re: Internet Explorer and index.dats
    ... I use a batch file that runs at boot. ... > So if my user account is reflected in the administrators account, ... >> the internal "Administrator" account. ... >> since if you delete the Temporary Internet Files via the Windows ...
    (microsoft.public.windowsxp.customize)
  • Re: please help.--3rd post. 2nd one lost in cyberspace--at least i cannot see it.
    ... i have downloaded and installed oracle. ... profile can run sql plus. ... if she boots and logs into her profile, she cannot run sql as the batch file ... > First, logged in as yourself or Administrator, go to Start-All ...
    (microsoft.public.windowsxp.general)
  • Re: How to launch program only for certain group>
    ... If you start your program with 'start /w myprogram' it will not end the batch file until the program exits. ... @REM Launch MyProgram except if Administrator ... I then designate this batch file run by using the Group Policy Editor on the TS Server: ...
    (microsoft.public.windows.terminal_services)
  • Re: Windows 7 Question
    ... that laptop and am the administrator. ... But now I cannot modify that file. ... I get an access denied error. ... You can now use it to launch a Console session, then use notepad.exe to modify and save the batch file. ...
    (microsoft.public.windows.file_system)