PDA

View Full Version : Passing parameters to Beyond Compare application


16-Apr-2004, 12:17 PM
Is it possible to pass source file name and target file name as parameters to BC application from command prompt and then BC taking care of applying necessary Sync rules to the target file and making necessary changes to the target file ? Thanks in advance.

Chris
16-Apr-2004, 12:38 PM
You can do this using BC's scripting functionality.

See the help file's Script Processing section for details.

You can call a script from the command line and pass arguments
using %1 through %9 in a script.
Syntax for calling a script is:
bc2 @script.txt sourcefile targetfile

Please post again if you have specific scripting questions.

16-Apr-2004, 01:30 PM
Chris, Thanks for your quick response. I will send you an e-mail with additional detail. Thanks a lot.