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 Search this Thread
Search this Thread:

Advanced Search




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
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
Task scheduler not working?
I can't defrag, and can't schedule any tasks. These are screenshots of my error messages. What can I do about finding "remote computer"? I only have this one!
Performance & Maintenance
Task Scheduler not working
Hi I can not run task scheduler pops the message "can not find the remote computer" Help ! Ps. I also used WWDC http://img30.imageshack.us/img30/879/wwdc.th.jpg
General Discussion
Task Scheduler is not working!
Hi, I have a freeware program called CleanMem and it runs with task scheduler. With it's use from Vista it was fine but not with transition to windows 7 after a few weeks task scheduler succumbs to an error such as the image below. Please help with this problem, i'm on a Windows 7 Ultimate with...
BSOD Help and Support
Task Scheduler is not working!
Hi, I have a freeware program called CleanMem and it runs with task scheduler. With it's use from Vista it was fine but not with transition to windows 7 after a few weeks task scheduler succumbs to an error such as the image below. Please help with this problem, i'm on a Windows 7 Ultimate...
Software


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 15:29.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App