Computer Hope
Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: FrankGC on August 14, 2009, 08:44:17 AM
-
HI,
I posted in the DOS forum about my efforts to use Robocopy to make backups:
5 Microsoft / Microsoft DOS / Variables with embedded blanks on: August 09, 2009, 01:16:02 PM
That batch file is working if I launch it.
It fails if I launch it with Task Scheduler.
The event log gives this error:
"Task Compatibility module failed to update task
User_Feed_Synchronization-(90573B48-7F1A-49EB-B0E2-630E54FB2F9A).job" to the required status 0.
Additional data error value 2147943732.
Information that I found on this error is here:
http://technet.microsoft.com/en-us/library/dd315694%28WS.10%29.aspx
Option 1 schtasks.exe didn't fix it.
Option 2 "Configure for box" only allows Windows Vista or Windows Server 2008 (one Choice)
Option 3 Use Task Scheduler to import a Task Scheduler 1.0 task from an XML file.
I didn't understand this!
Does anyone hav an idea for me?
Thanks
Frank C
-
Task Scheduler Actions tab > Edit Actions > Program/Script entry must not be surrounded with quotes It is if you use the Browse button to find your file to be executed.
Mine looked like this:
"C:\Users\Owner\Desktop\System Tools\CopyTask.bat"
I renamed System Tools to System-Tools. I removed the quotes. Now it looks like this
C:\Users\Owner\Desktop\System-Tools\CopyTask.bat
and it works!
I am now trying to get the wake-up user logged on or not combination to work
Frank C
-
I had one more problem getting Robocopy to work under Task Scheduler.
Since my backup drive is a shared network drive the destination was not found. I got this error:
2009/08/15 20:20:00 ERROR 3 (0x00000003) Creating Destination Directory S:\Shared-Music\BackUp-Test\
The system cannot find the path specified.
I learned that using the UNC addressing scheme could circumvent accessing a mapped network drive problem. I used the CMD prompt and the NET USE cmd to get the format. I changed My Robocopy cmd from :
Robocopy C:\Users\Owner\Music\recordings\BackUp-Test\ S:\Shared-Music\BackUp-Test\ /Log:TaskSchBkupLog.txt
To:
Robocopy C:\Users\Owner\Music\recordings\BackUp-Test\ \\externaldrive\public\Shared-Music\BackUp-Test\ /Log:TaskSchBkupLog.txt
This is working! I hope that my experience may help others.
Frank C