by thyarcher » Tue Apr 24, 2007 12:39 pm
Well, I finally needed the folder compare over a slow network connection, and the full compare wasn't fast enough. So, here is an UltraEdit script that might be helpful if you just need the results of the compare. You perform the standard date/size directory comparison, do a File/Save Results to a file, load the file into UltraEdit or UEStudio, position the cursor on the first line of the "Diffs", and run the macro. The macro will search through the file and delete each line that has the identical file sizes. This will remove the extra entries that the un-matched dates produced. It is a little slow if you have a lot of "Diffs" scattered throughout the file, but it works. Some caveats, the script switches to clipboard 1 so that you can use the Windows clipboard while it is running, so if you cancel the script you need to switch it back. Also, since it uses bookmarks, make sure that no bookmarks are toggled in the file prior to starting the script.
[edit] Updated the script to handle commas in the file size column.
Enjoy:
InsertMode
ColumnModeOff
HexOff
Clipboard 1
UnixReOn
ToggleBookmark
Loop
GotoLine 0 1
Find RegExp "^[^|]*\|[^|]*\| "
Find RegExp "[,\d]+"
Copy
GotoLine 0 1
UnixReOff
Find RegExp "| ^c ?+ | ^c "
UnixReOn
IfFound
DeleteLine
GotoBookMarkSelect 0
IfSel
GotoBookMark 0
Else
ToggleBookmark
EndIf
Else
GotoBookMark 0
ToggleBookmark
Find RegExp "^"
IfFound
ToggleBookmark
Else
ExitLoop
EndIf
EndIf
EndLoop
Clipboard 0