Hello
I setup the session to copy and mirror the folder from the left to the right. I would like execute the script daily to mirror the folders from left to the right folder (copy the newer/update files from the left to the right and delete any orphaned files on the rights, delete any folder/files on the left side that are not exists on the right side). After executing the script, I like to have the output of the successfully copied number of files and how long it takes to the text file.
Here is my script called: "JNBCscript.txt
load "ScriptTest"
option confirm:yes-to-all
sync mirror:right->left
folder-report layout:summary &
options:display-mismatches &
output-to:"c:\data\bc\jnbcscriptout.txt"
I have the batch file called: JNBCScriptBat.bat
bcompare @"c:\data\bc\JNBCscript.txt" /closescript
The output of jnbcscriptout.txt
Folder Compare
Produced: 3/3/2016 2:50:23 PM
Mode: Differences
Left base folder: C:\TEST1
Right base folder: Q:\AdmTemp\jn\TEST2
Left Orphan Files (0) Size Modified
------------------------------------
Right Orphan Files (0) Size Modified
------------------------------------
Left Newer Files (0) Size Modified
------------------------------------
Right Newer Files (0) Size Modified
------------------------------------
Differences Files (0) Size Modified
------------------------------------
I can not get the output summaries like
3/3/2016 2:43:40 PM Username: Domain\abcuser
3/3/2016 2:43:40 PM Load comparison: C:\TEST1 <-> Q:\AdmTemp\jn\TEST2
3/3/2016 2:43:46 PM Successfully copied 101 items. Completed in 1.51 seconds.
3/3/2016 2:51:38 PM Successfully copied 106 items. Completed in 0.89 seconds.
Also, when I create the task schedule to run the batch file "JNBCScriptBat.bat", the task does not END properly. It shows "RUNNING", I have to manually end it to make the task become READY.
Would anyone be able to help me?
Thank you
Johnathan
I setup the session to copy and mirror the folder from the left to the right. I would like execute the script daily to mirror the folders from left to the right folder (copy the newer/update files from the left to the right and delete any orphaned files on the rights, delete any folder/files on the left side that are not exists on the right side). After executing the script, I like to have the output of the successfully copied number of files and how long it takes to the text file.
Here is my script called: "JNBCscript.txt
load "ScriptTest"
option confirm:yes-to-all
sync mirror:right->left
folder-report layout:summary &
options:display-mismatches &
output-to:"c:\data\bc\jnbcscriptout.txt"
I have the batch file called: JNBCScriptBat.bat
bcompare @"c:\data\bc\JNBCscript.txt" /closescript
The output of jnbcscriptout.txt
Folder Compare
Produced: 3/3/2016 2:50:23 PM
Mode: Differences
Left base folder: C:\TEST1
Right base folder: Q:\AdmTemp\jn\TEST2
Left Orphan Files (0) Size Modified
------------------------------------
Right Orphan Files (0) Size Modified
------------------------------------
Left Newer Files (0) Size Modified
------------------------------------
Right Newer Files (0) Size Modified
------------------------------------
Differences Files (0) Size Modified
------------------------------------
I can not get the output summaries like
3/3/2016 2:43:40 PM Username: Domain\abcuser
3/3/2016 2:43:40 PM Load comparison: C:\TEST1 <-> Q:\AdmTemp\jn\TEST2
3/3/2016 2:43:46 PM Successfully copied 101 items. Completed in 1.51 seconds.
3/3/2016 2:51:38 PM Successfully copied 106 items. Completed in 0.89 seconds.
Also, when I create the task schedule to run the batch file "JNBCScriptBat.bat", the task does not END properly. It shows "RUNNING", I have to manually end it to make the task become READY.
Would anyone be able to help me?
Thank you
Johnathan
Comment