Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: XCOPY command in bat file doesn't run as scheduled task  (Read 9535 times)

0 Members and 1 Guest are viewing this topic.

jantzman60

    Topic Starter


    Newbie

    XCOPY command in bat file doesn't run as scheduled task
    « on: October 09, 2009, 12:47:51 PM »
    Hi,

    I have been testing the copying of files from a test directory on one server (Windows 2008) to another server (Windows 2003).

    I can successfully execute the XCOPY command in a 'bat' file, but when I schedule the ‘bat’ file as a scheduled
    task, the command doesn't work.

    XCOPY "E:\backup test\test folder" "\\poweredge\Backups" /C /E /H /I /Y

    What am I missing?  Something related to permissions?

    Thanks!

    macdad-



      Expert

      Thanked: 40
      Re: XCOPY command in bat file doesn't run as scheduled task
      « Reply #1 on: October 09, 2009, 03:07:27 PM »
      Did you schedule the script from the Scheduled Task Wizard or did you use the AT command?
      If you dont know DOS, you dont know Windows...

      Thats why Bill Gates created the Windows NT Family.

      jantzman60

        Topic Starter


        Newbie

        Re: XCOPY command in bat file doesn't run as scheduled task
        « Reply #2 on: October 13, 2009, 09:11:36 AM »
        macdad,

        Thanks for the response.  I scheduled the script from the Scheduled Task Wizard.

        I found the solution.  A friend commented that dos xcopy won't let you use a URL
        and that I would need to map a drive.  Mapping the drive allowed the xcopy to work!

        billrich

        • Guest
        Re: XCOPY command in bat file doesn't run as scheduled task
        « Reply #3 on: October 13, 2009, 04:10:39 PM »
         :)
        « Last Edit: October 14, 2009, 07:46:31 AM by billrich »