#This script can be called by start-folder-note-scan.py #This script is generic and does not require any scan specific settings. #the script will first compare a current source tree (Now) and the old snapshot of the source tree (Then) #anything that is new (not in the snapshot or on the LPC, refered to as a orphan) or updated is going to be checked for FolderNotes #then the source directory tree is compared to a published directory tree or a local published copy tree (LPC) #and anything that is newer (some kind of error? coruption?) or an orphan is deleted #E:\IM_apps\Server_Scripts\FolderNotes\scans\template_project_folder E:\IM_apps\Server_Scripts\FolderNotes\dev\filesystem_new d:\test d:\test # Turn logging on #log verbose "%1\logs\BeyondCompare_script-log_%date%.txt" option confirm:yes-to-all # Set comparison criteria criteria timestamp:2sec;IgnoreDST size # Exclude certain file types filter "-~*.*;-.picasa.ini;-Thumbs.db" # Load the current source tree (Now) and the old snapshot of the source tree (Then), #if there is no snapshot then the LPC is being sent here load "%2" "%4" #expand the folders to see everything expand all #make a text report for Folder Notes to use folder-report layout:summary & options:display-left-newer-orphans,column-none & output-to:"%1\display-left-newer-orphans.txt" & # Load the base folders (SOURCE TREE to LPC) to clean out the LPC load "%2" "%3" expand all select rt.newer.all rt.orphan.all delete recyclebin=no right