Hi Guys,
I'm pretty new to scripting with Beyond Compare and Power shell (only done about 4 hours of work!) and I've come across an issue.
I want to be able to run Beyond compare commands directly within power shell. From what I can see, this can only be done via external scripts. Is it not possible to run all my commands directly within Powershell?
In this case, I'm trying to do a BC on two folders and like to have the result displayed in a nicely formatted HTML page.
Running this on Powershell works for which it compares in BC:
& "C:\Program Files\Beyond Compare 4\BCompare.exe" "$folder1" "$folder2"
But if I then try and view it as HTML, I do the following:
& "C:\Program Files\Beyond Compare 4\BCompare.exe" "$folder1" "$folder2" "criteria rules-based" "load" "$folder1" "$folder2" "expand all" "select all.files" "folder-report layout:side-by-side options:include-file-links" "output-to:\ output-options:html-color"
This doesn't work.
So am I right in assuming, I'll have to generate an external script and link it to my powershell file or is it possible to run these commands within Powershell directly?
Thank you!
I'm pretty new to scripting with Beyond Compare and Power shell (only done about 4 hours of work!) and I've come across an issue.
I want to be able to run Beyond compare commands directly within power shell. From what I can see, this can only be done via external scripts. Is it not possible to run all my commands directly within Powershell?
In this case, I'm trying to do a BC on two folders and like to have the result displayed in a nicely formatted HTML page.
Running this on Powershell works for which it compares in BC:
& "C:\Program Files\Beyond Compare 4\BCompare.exe" "$folder1" "$folder2"
But if I then try and view it as HTML, I do the following:
& "C:\Program Files\Beyond Compare 4\BCompare.exe" "$folder1" "$folder2" "criteria rules-based" "load" "$folder1" "$folder2" "expand all" "select all.files" "folder-report layout:side-by-side options:include-file-links" "output-to:\ output-options:html-color"
This doesn't work.
So am I right in assuming, I'll have to generate an external script and link it to my powershell file or is it possible to run these commands within Powershell directly?
Thank you!
Comment