robocopy script is not working through Scheduler

Page 1 of 2 12 LastLast

  1. Posts : 5
    64 bit, windows 7
       #1

    robocopy script is not working through Scheduler


    Dear All,

    My batch file of robocopy is working fine. But when I tried to run it through task scheduler, none of the files transfer to the target location.

    @echo off
    echo +-----------------------------------------+
    echo Database Export Utility for server
    echo +-----------------------------------------+
    echo .
    ROBOCOPY E:\dp_dir \\192.168.30.28\inter_loc_dump /LOG:LOG_FILE.TXT

    Above script is working fine...but task scheduler is keep on running without any results.

    Please help me out.

    Regards,
    Ashish Kumar Mahanta
      My Computer


  2. Posts : 2,177
    Windows 8.1 Pro x64
       #2

    Hi and Welcome to SevenForums,

    In the Scheduler, what settings have you set under General, Triggers and Actions?

    Regards,
    Jamie
      My Computer


  3. Posts : 5
    64 bit, windows 7
    Thread Starter
       #3

    In general >> bkp_to_30_28
    clicked on below radio button -
    run whether user is logged on or not
    do not store pasword.
    run with highest privileges.

    In Trigger >> Daily --timing --enabled

    In Action >> path of the batch file.

    But i am running it manually. As for testing purpose i need to start it manually.

    Is it due to permission issue? Since folders are getting transfer to remote server.

    Any more details required?
    Last edited by ashishmahanta; 03 Sep 2014 at 04:26. Reason: Providing some more info.
      My Computer


  4. Posts : 2,177
    Windows 8.1 Pro x64
       #4

    Just to clear a few things up can you post screenshots of those screens?
    Screenshots and Files - Upload and Post in Seven Forums

    I wouldn't have thought it would be permissions if it works when you run manually.

    When you run it manually, are you running it manually from the Task Scheduler or Running the script directly?

    Regards,
    Jamie
      My Computer


  5. Posts : 5
    64 bit, windows 7
    Thread Starter
       #5

    When I run batch file manually. It works fine (folder copied to destination location). When i run task scheduler, nothing comes up. It shows, only running.


    robocopy script is not working through Scheduler-action-tab.png

    robocopy script is not working through Scheduler-trigger-tab.png

    robocopy script is not working through Scheduler-general-tab.png
      My Computer


  6. Posts : 2,177
    Windows 8.1 Pro x64
       #6

    Try changing the Security options to 'Run only when user is logged on' and un-check 'Run with highest privileges'

    Now change the 'Configure for' drop down box to Windows 7

    OK/Save that and see if it runs now?
      My Computer


  7. Posts : 5
    64 bit, windows 7
    Thread Starter
       #7

    Thanks a lot.
    May I know what is the difference between the radio button? I was using always "Run with highest privileges"
    After doing the changes, my folders is getting transfer to the destination server (manually started the task manager).


    Thankrobocopy script is not working through Scheduler-general-tab_updated.png
      My Computer


  8. Posts : 172
    Windows 7 x64 SP1
       #8

    Have you tried placing the path in double quotes ? I know in theory you only need to do this if there is a space in the path / directory name, however task scheduler tends to treat batch files differently and in order to get mine working with it the path needed the double quotes added... worth a shot easy enough to change back if it don't work.
      My Computer


  9. Posts : 2,177
    Windows 8.1 Pro x64
       #9

    Can you confirm that since making those changes it now works?

    Regards,
    Jamie
      My Computer


  10. Posts : 5
    64 bit, windows 7
    Thread Starter
       #10

    Dear Jamie,

    Thanks a lot dear. It is working now.

    Regards,
    Ashish Kumar Mahanta
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:31.
Find Us