So I honestly feel very silly posting this, although it's been bugging me and I can't fathom there is no way to do this. I have written several scripts that compare and copy multiple files, as well as one that will do a single file compare and output the results to html. No problem. But for the life of me I can't seem to write a script that will simply copy a single file from a to b. Here is the script that I have..
log verbose %3
criteria binary
filter %4
load %1 %2
copy left->right
and the command to run it would be
BComp @<script> <left path> <right path> <log file> <file name>
When running it, I get no errors, but the file is also not copied.
Comparing the two manually inside of BC, it shows differences in the file, before and after running. Comparing the two files using a similar script, shows the differences in the file. Leaving out the filter command, adding an expand all and select all will get the file copied, but obviously also copies everything else. Now, I have realized that I wouldn't really need BC to do this file copy (I could use standard command line copy, but the rest of the actions in this library use it, and I already have code surrounding parsing the log file and displaying the results in a customized way.
So, is there a way to do what I want to do using BC scripts?
log verbose %3
criteria binary
filter %4
load %1 %2
copy left->right
and the command to run it would be
BComp @<script> <left path> <right path> <log file> <file name>
When running it, I get no errors, but the file is also not copied.
Comparing the two manually inside of BC, it shows differences in the file, before and after running. Comparing the two files using a similar script, shows the differences in the file. Leaving out the filter command, adding an expand all and select all will get the file copied, but obviously also copies everything else. Now, I have realized that I wouldn't really need BC to do this file copy (I could use standard command line copy, but the rest of the actions in this library use it, and I already have code surrounding parsing the log file and displaying the results in a customized way.
So, is there a way to do what I want to do using BC scripts?
Comment