Go Back   Scooter Forums > Beyond Compare 2 Discussion > Script Central
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 30-Jun-2005, 01:27 PM
Guest
 
Posts: n/a
Default Brand new to BC

I need help. I just started using Beyond Compare this week and am just testing the waters on the scripting aspect of it.

I have created a script (see below) and set it as a scheduled task to run. It works great.
<font color="blue">
load "DEPT"
expand all
select right.newer.files right.orphan.files
copy right->left
</font>
But now I am trying to make it so that it generates a log file for exactly when it started, what it did and when it finished. Also including any errors it encountered.

Can someone please help?
Reply With Quote
  #2  
Old 30-Jun-2005, 01:48 PM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,792
Default Re: Brand new to BC

To log your script to a file add the line: log verbose c:\logfile.txt at the beginning of the script.
__________________
Chris K Scooter Software
Reply With Quote
  #3  
Old 30-Jun-2005, 02:02 PM
Guest
 
Posts: n/a
Default Re: Brand new to BC

Is there any way that I can create the log, but that it doesnt overwrite the previous entries? OR does it have to create a new text file every time i run the script?

I'm having difficulties with our Backup unit and am having to use this as a temporary solution. So i need to have a continous log of all changes, etc.

Any ideas?
Reply With Quote
  #4  
Old 30-Jun-2005, 02:31 PM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,792
Default Re: Brand new to BC

Use the command:
log verbose append:c:\logfile.txt

All scripting commands are described in the Command Line and Scripting section of the help file.
__________________
Chris K Scooter Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:03 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.