PDA

View Full Version : Script: Snapshot of a folder


knnknn
05-Oct-2011, 08:43 PM
Is it possible to start BC3 from the commandline and make a snapshot of a folder (and subfolders) named appropriately

BCompare.exe c:\myfolder @snapshot.txt
would create a file "myfolder.bcss" with the snapshot?

Is that possible?

Aaron
07-Oct-2011, 02:34 PM
Yes, but you'll need to use a script:

Command line:
Bcompare.exe "@c:\bcscript.txt" "c:\myfolder" "bcsnapshot.bcss"

bcscript.txt
snapshot path:"%1" output:"%2"

Our snapshot scripting command is documented in the Help file in the Scripting Reference section. Our parameter handling examples (%1) are in the Using Beyond Compare -> Automating with Script section.

Please let us know if you have any questions.