Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: robocopy script is not working through Scheduler

03 Sep 2014   #1
ashishmahanta

64 bit, windows 7
 
 
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 System SpecsSystem Spec
.
03 Sep 2014   #2
JDobbsy1987

Windows 8.1 Pro x64
 
 

Hi and Welcome to SevenForums,

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

Regards,
Jamie
My System SpecsSystem Spec
03 Sep 2014   #3
ashishmahanta

64 bit, windows 7
 
 

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?
My System SpecsSystem Spec
.

03 Sep 2014   #4
JDobbsy1987

Windows 8.1 Pro x64
 
 

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 System SpecsSystem Spec
03 Sep 2014   #5
ashishmahanta

64 bit, windows 7
 
 

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 System SpecsSystem Spec
03 Sep 2014   #6
JDobbsy1987

Windows 8.1 Pro x64
 
 

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 System SpecsSystem Spec
03 Sep 2014   #7
ashishmahanta

64 bit, windows 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 System SpecsSystem Spec
03 Sep 2014   #8
Andyrids

Windows 7 x64 SP1
 
 

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 System SpecsSystem Spec
03 Sep 2014   #9
JDobbsy1987

Windows 8.1 Pro x64
 
 

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

Regards,
Jamie
My System SpecsSystem Spec
04 Sep 2014   #10
ashishmahanta

64 bit, windows 7
 
 

Dear Jamie,

Thanks a lot dear. It is working now.

Regards,
Ashish Kumar Mahanta
My System SpecsSystem Spec
Reply

 robocopy script is not working through Scheduler




Thread Tools




Similar help and support threads
Thread Forum
ROBOCOPY - Create Backup Script
How to Create a Backup Script using ROBOCOPY Command There are many paid and free software solutions available to backup critical data and files on a computer system. Many users, however, are unaware of an inbuilt Windows 7 command called ROBOCOPY (Robust File Copy) that allows users to...
Tutorials
Robocopy Script For Incremental, Differential and Full Backup
Dears, Anobody can help me to have a backup script that will help for backup requirement, Please see the details below My Source Directory is "D:\Source" My Destinationa Directory is "\\Server\Destination" I need to meet the following (1) Need to take fullbackup on every Friday ? For this...
General Discussion
my backup script using robocopy
robocopy /S /E /MOV %USERPROFILE%\Documents\ G:\backup\Documents\ robocopy /S /E /MOV %USERPROFILE%\Pictures\ G:\backup\Pictures\ robocopy /S /E /MOV %USERPROFILE%\Downloads\ G:\backup\DownloadS\ robocopy /S /E /MOV %USERPROFILE%\Favorites\ G:\backup\Favorites\ robocopy /S /E /MOV...
Backup and Restore
Robocopy Command Not Working
I've created a batch file to copy some of my files in a set order. This works OK with xcopy, but I can't get the commands to work with robocopy (which I think should be a better copy mechanism) and was hoping someone can help me correct it. Here's one of the lines that doesn't work: robocopy...
General Discussion
Using Task Scheduler fails to run RoboCopy.
I have set up some RoboCopy tasks that run fine when run from the desktop link, but being forgetful I thought I would try to run them automatically using Task Scheduler. I followed the instructions in the tutorial and all appeared to be fine. However the tasks did not run so I checked them in Task...
Backup and Restore


Our Sites

Site Links

About Us

Find 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 16:49.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App