Hi, fairly new user here.
My job as a typical software developer has me diffing several source files against their source control versions and submitting that output as part of the change documentation. So far I've discovered that a "workspace" is a set of multiple "sessions", and I've created a workspace containing all the various diff sessions that make up my software change.
I'm trying to write a batch file to invoke BC3 using a script that loads the previously-saved workspace, runs the multiple diffs against the multiple sessions contained in that workspace, and writes each diff output to a given filename in a given directory (in html format). I understand the command-line parameter to indicate a script is the "@" character, and the name of the workspace can be given too. It's just regular text (source code) files I'm comparing, nothing binary.
My batch file looks like this:
...where "co123.scr" is my script filename, and the second "co123" is the name of my workspace. This workspace contains three separate pairs of files being compared, stored in three sessions.
My script looks like this:
My problem is that I don't seem to have a way to make it feed in the pairs of filenames from the workspace "co123" such that each pair is compared and written to separate html output results files. I don't know what to give it for "file1" and "file2" in the script above. Also I'll need separate output html files; the single "differport.html" in my example above won't do.
I'd like to do all this from a single batch file and, if it's possible, from a single invocation of BC3. Some of my change orders involve as many as 12-15 source file changes, so I'd not like to end up with 12-15 batch files per change order scattered all over my desktop. I understand there will be some initial set-up, but after that I'd like to have it as automated as it can get.
(Oh, I'm using Vault, so there's a local copy of the original (Vault) version of each file already on my hard drive. The path to those files is stored with my sessions so it looks like any old two text files being compared.)
I hope that's clear enough. Can you help?
My job as a typical software developer has me diffing several source files against their source control versions and submitting that output as part of the change documentation. So far I've discovered that a "workspace" is a set of multiple "sessions", and I've created a workspace containing all the various diff sessions that make up my software change.
I'm trying to write a batch file to invoke BC3 using a script that loads the previously-saved workspace, runs the multiple diffs against the multiple sessions contained in that workspace, and writes each diff output to a given filename in a given directory (in html format). I understand the command-line parameter to indicate a script is the "@" character, and the name of the workspace can be given too. It's just regular text (source code) files I'm comparing, nothing binary.
My batch file looks like this:
Code:
"C:\Program Files (x86)\Beyond Compare 3\BComp.com" @"co123.scr" co123
My script looks like this:
Code:
text-report layout:side-by-side output-to:"diffreport.html" output-options:html-color [B]file1 file2[/B]
I'd like to do all this from a single batch file and, if it's possible, from a single invocation of BC3. Some of my change orders involve as many as 12-15 source file changes, so I'd not like to end up with 12-15 batch files per change order scattered all over my desktop. I understand there will be some initial set-up, but after that I'd like to have it as automated as it can get.
(Oh, I'm using Vault, so there's a local copy of the original (Vault) version of each file already on my hard drive. The path to those files is stored with my sessions so it looks like any old two text files being compared.)
I hope that's clear enough. Can you help?
Comment