| Current Path : /lib/beyondcompare/help/ |
| Current File : //lib/beyondcompare/help/scripting_reference.html |
<!DOCTYPE html>
<html>
<head>
<title>Scripting Reference</title>
<meta name="generator" content="Help & Manual" />
<meta name="keywords" content="scripts,scripts reference" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link type="text/css" href="default.css" rel="stylesheet" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="helpman_settings.js"></script>
<script type="text/javascript" src="helpman_topicinit.js"></script>
<script type="text/javascript">
HMSyncTOC("index.html", "scripting_reference.html");
</script>
<script type="text/javascript" src="highlight.js"></script>
<script type="text/javascript">
$(document).ready(function(){highlight();});
</script>
</head>
<body style="margin: 0px 0px 0px 0px; background: #FFFFFF;">
<table width="100%" border="0" cellspacing="0" cellpadding="5"
style="margin: 0px; background: #9D0909 url(red-bg.jpg) 0px 0px repeat-x;">
<!-- <table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#B01213"> -->
<tr valign="middle">
<!-- <td style="width: 10px"> </td> -->
<td align="left">
<h1 class="p_Heading1"><span class="f_Heading1">Scripting Reference</span></h1>
</td>
<td align="right">
<span style="font-size: 9pt">
<a href="command_line_reference.html"
onmouseover="document.images.prev.src='prev-hot.png'"
onmouseout="document.images.prev.src='prev.png'"
><img name=prev src="prev.png" border=0 alt="Previous"
></a><a href="welcome.html"
onmouseover="document.images.top.src='top-hot.png'"
onmouseout="document.images.top.src='top.png'"><img name=top src="top.png" border=0 alt="Up"
></a><a href="regular_expression_reference.html"
onmouseover="document.images.next.src='next-hot.png'"
onmouseout="document.images.next.src='next.png'"><img name=next src="next.png" border=0 alt="Next"
></a>
</span>
</td>
</tr>
</table>
<!-- Placeholder for topic body. -->
<table width="100%" border="0" cellspacing="0" cellpadding="5"><tr valign="top"><td align="left">
<p class="p_Normal">A script is a simple text file containing a list of commands which can control the program and automatically perform file operations or produce reports. See also <a href="scripts.html" class="topiclink">Scripts</a> and <a href="sample_scripts.html" class="topiclink">Sample Scripts</a>.</p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 3px 0px 14px 0px;"><table style="border:none; border-spacing:0px; border-collapse:collapse;">
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:top; background-color:#dadada; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">Notation</p>
</td>
<td style="vertical-align:top; background-color:#dadada; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">Meaning</p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">|</p>
</td>
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">delimits the possible choices</p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">()</p>
</td>
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">surrounds a required expression</p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">[]</p>
</td>
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">surrounds an optional expression</p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced"><></p>
</td>
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">surrounds the description of required user text</p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">[...]</p>
</td>
<td style="vertical-align:top; background-color:#eeeeee; padding:2px; border:solid 2px #ffffff;"><p class="p_SingleSpaced">follows an expression that can be repeated</p>
</td>
</tr>
</table>
</div>
<p class="p_Normal">You can use <span class="f_Command">lt</span> in place of <span class="f_Command">left</span> or <span class="f_Command">rt</span> in place of <span class="f_Command">right</span> in any of the commands.</p>
<p class="p_Normal">These are the script commands (in alphabetical order):</p>
<p class="p_Normal"><a href="scripting_reference.html#attrib" class="topiclink">ATTRIB</a> <a href="scripting_reference.html#beep" class="topiclink">BEEP</a> <a href="scripting_reference.html#collapse" class="topiclink">COLLAPSE</a> <a href="scripting_reference.html#compare" class="topiclink">COMPARE</a> <a href="scripting_reference.html#copy" class="topiclink">COPY</a> <a href="scripting_reference.html#copyto" class="topiclink">COPYTO</a> <a href="scripting_reference.html#criteria" class="topiclink">CRITERIA</a> <a href="scripting_reference.html#data-report" class="topiclink">DATA-REPORT</a> <a href="scripting_reference.html#delete" class="topiclink">DELETE</a> <a href="scripting_reference.html#expand" class="topiclink">EXPAND</a> <a href="scripting_reference.html#file-report" class="topiclink">FILE-REPORT</a> <a href="scripting_reference.html#filter" class="topiclink">FILTER</a> <a href="scripting_reference.html#folder-report" class="topiclink">FOLDER-REPORT</a> <a href="scripting_reference.html#hex-report" class="topiclink">HEX-REPORT</a> <a href="scripting_reference.html#load" class="topiclink">LOAD</a> <a href="scripting_reference.html#log" class="topiclink">LOG</a> <a href="scripting_reference.html#move" class="topiclink">MOVE</a> <a href="scripting_reference.html#moveto" class="topiclink">MOVETO</a> <a href="scripting_reference.html#mp3-report" class="topiclink">MP3-REPORT</a> <a href="scripting_reference.html#option" class="topiclink">OPTION</a> <a href="scripting_reference.html#pix-report" class="topiclink">PICTURE-REPORT</a> <a href="scripting_reference.html#reg-report" class="topiclink">REGISTRY-REPORT</a> <a href="scripting_reference.html#rename" class="topiclink">RENAME</a> <a href="scripting_reference.html#select" class="topiclink">SELECT</a> <a href="scripting_reference.html#snapshot" class="topiclink">SNAPSHOT</a> <a href="scripting_reference.html#sync" class="topiclink">SYNC</a> <a href="scripting_reference.html#text-report" class="topiclink">TEXT-REPORT</a> <a href="scripting_reference.html#touch" class="topiclink">TOUCH</a> <a href="scripting_reference.html#version-report" class="topiclink">VERSION-REPORT</a></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="attrib" class="hmanchor"></a><span class="f_Subtitle">ATTRIB</span> <img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="windows.png"/></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">attrib (+|-)<</span><span class="f_CourierFixed">attribute set 1</span><span class="f_CourierFixed">> [(+|-)<</span><span class="f_CourierFixed">attribute set 2</span><span class="f_CourierFixed">> [...]]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Where <attribute set> is:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">[a][s][h][r]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal"><img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="mac.png"/> <img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="linux.png"/> The Mac and Linux versions do not support <span class="f_Command">attrib</span>.</p>
<p class="p_Normal">Sets (<span class="f_Command">+</span>) or clears (<span class="f_Command">-</span>) the DOS file attributes in the current selection. Use <span class="f_Command">a</span> for archive, <span class="f_Command">s</span> for system, <span class="f_Command">h</span> for hidden and <span class="f_Command">r</span> for read-only.</p>
<p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">attrib +h</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">attrib +sh -a</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="beep" class="hmanchor"></a><span class="f_Subtitle">BEEP</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">beep</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Beeps the PC speaker. The beep occurs regardless of the <span class="f_CourierFixed">/silent</span> command line switch.</p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="collapse" class="hmanchor"></a><span class="f_Subtitle">COLLAPSE</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">collapse all</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">collapse <</span><span class="f_CourierFixed">path 1</span><span class="f_CourierFixed">> [<</span><span class="f_CourierFixed">path 2</span><span class="f_CourierFixed">> [...]]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Collapses all folders or folders with specified paths. Paths are relative to the base folder and can <span style="font-style: italic;">not</span> have wildcards.</p>
<p class="p_Normal">Example:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">collapse "</span><span class="f_CourierFixed">My Folder 1</span><span class="f_CourierFixed">" "</span><span class="f_CourierFixed">My Folder 2</span><span class="f_CourierFixed">"</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="compare" class="hmanchor"></a><span class="f_Subtitle">COMPARE</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">compare [CRC|binary|rules-based]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Compares the contents of the current selection using the <a href="opcompare.html" class="topiclink">compare type</a>. By default, the most recent compare type is used.</p>
<p class="p_Normal">This command only compares files once. To change how files are compared after modification, use <a href="scripting_reference.html#criteria" class="topiclink">CRITERIA</a>.</p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="copy" class="hmanchor"></a><span class="f_Subtitle">COPY</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">copy (left->right|right->left)</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Copies the selected files/folders in the direction indicated.</p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="copyto" class="hmanchor"></a><span class="f_Subtitle">COPYTO</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">copyto [left|right|all] [path:(relative|base|none)] <</span><span class="f_CourierFixed">path</span><span class="f_CourierFixed">></span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Copies the selected files/folders on the specified side to the specified path using the <a href="opcopyto.html" class="topiclink">path option</a>.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">base</span> keeps the entire folder structure relative to the base folders of all selected items.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">relative</span> keeps the minimum relative folder structure of all selected items.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span>The defaults are <span class="f_Command">all</span> and <span class="f_Command">path:none</span>.</p><p class="p_SingleSpaced"><span class="f_SingleSpaced"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="criteria" class="hmanchor"></a><span class="f_Subtitle">CRITERIA</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">criteria [attrib:<</span><span class="f_CourierFixed">attribute set</span><span class="f_CourierFixed">>] [version] [timestamp[:[<</span><span class="f_CourierFixed">number of seconds</span><span class="f_CourierFixed">>sec][;IgnoreDST]]] [size|CRC|binary|rules-based] [timezone:(ignore|(left|right)(+|-)<0..12>)] [follow-symlinks] [ignore-unimportant]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Where <attribute set> is:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">[a][s][h][r]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal"><img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="mac.png"/> <img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="linux.png"/> The Mac and Linux versions do not support <span class="f_Command">attrib</span>.</p>
<p class="p_Normal">Sets all <a href="sessiondircomparison.html" class="topiclink">comparison criteria</a> settings.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">attrib</span> enables comparisons of the specified DOS file attributes. Use <span class="f_Command">a</span> for archive, <span class="f_Command">s</span> for system, <span class="f_Command">h</span> for hidden and <span class="f_Command">r</span> for read-only.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">version</span> enables comparisons of version information common in exes and dlls.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">timestamp</span> enables timestamp comparisons.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><number of seconds><span class="f_Command">sec</span> considers differences within a tolerance of seconds as matches.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">IgnoreDST</span> considers differences of exactly 1 hour as matches.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">size</span>, <span class="f_Command">CRC</span>, <span class="f_Command">binary</span> and <span class="f_Command">rules-based</span> are the possible ways to compare contents.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">timezone</span> ignores timezone differences or applies timezone offset to the specified side.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">follow-symlinks</span> treats symbolic links and NTFS junctions as the target file or folder, rather than the link itself.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">ignore-unimportant</span> treats unimportant differences as matches.</p><p class="p_Normal">Example:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">criteria attrib:sh timestamp:2sec;IgnoreDST rules-based timezone:left+6</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="data-report" class="hmanchor"></a><span class="f_Subtitle">DATA-REPORT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">data-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [<</span><span class="f_CourierFixed">comparison</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates a Table Compare report of the currently selected files.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span>, <span class="f_Command">summary</span> or <span class="f_Command">interleaved</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional and is used differently for each layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">ignore-unimportant</span> treats differences in unimportant text as matches and is available in all layouts.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">display-all</span>, <span class="f_Command">display-mismatches</span> or <span class="f_Command">display-matches</span> can be used to control which lines of the comparison are included in all layouts except <span class="f_Command">summary</span>. By default, <span class="f_Command">display-all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">line-numbers</span> includes row numbers in the <span class="f_Command">side-by-side</span> layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span>, <span class="f_Command">output-options</span> and <comparison> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="delete" class="hmanchor"></a><span class="f_Subtitle">DELETE</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">delete [recyclebin=(yes|no)] (left|right|all)</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Deletes the currently selected files/folders on the specified side(s). The <span class="f_Command">recyclebin</span> argument only has effect where supported by the operating system. Network drives, remote services and archive files do not support it.</p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="expand" class="hmanchor"></a><span class="f_Subtitle">EXPAND</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">expand all</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">expand <</span><span class="f_CourierFixed">path 1</span><span class="f_CourierFixed">> [<</span><span class="f_CourierFixed">path 2</span><span class="f_CourierFixed">> [...]]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Expands specified subfolders or all subfolders. Paths are relative to the base folder and can not have wildcards. Subfolders must be expanded in order for their contents to be used by other commands, like <a href="scripting_reference.html#select" class="topiclink">SELECT</a>. <span class="f_Command">expand all</span> will not expand subfolders that have been excluded from the comparison by File Filter settings.</p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="file-report" class="hmanchor"></a><span class="f_Subtitle">FILE-REPORT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">file-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [<</span><span class="f_CourierFixed">comparison</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates a report of the currently selected files based on the type of files processed. For example, it will produce a DATA-REPORT for file types associated with a Table Compare file format.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span> or <span class="f_Command">summary</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional and is used differently for each layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">ignore-unimportant</span> treats differences in unimportant text as matches and is available in all layouts.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">display-all</span>, <span class="f_Command">display-mismatches</span> or <span class="f_Command">display-matches</span> can be used to control which lines of the comparison are included in all layouts except <span class="f_Command">summary</span>. By default, <span class="f_Command">display-all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">line-numbers</span> includes line numbers in the <span class="f_Command">side-by-side</span> layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span>, <span class="f_Command">output-options</span> and <comparison> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><p class="p_Normal">Example:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">file-report layout:side-by-side options:display-mismatches &</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed"> output-to:printer output-options:print-color,wrap-word</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="filter" class="hmanchor"></a><span class="f_Subtitle">FILTER</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter <</span><span class="f_CourierFixed">file masks</span><span class="f_CourierFixed">></span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter cutoff:([<|>](<</span><span class="f_CourierFixed">timestamp</span><span class="f_CourierFixed">>|<</span><span class="f_CourierFixed">number of days</span><span class="f_CourierFixed">>[days])|none)</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter attrib:((+|-)<</span><span class="f_CourierFixed">attribute set</span><span class="f_CourierFixed">>|none)</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter size:([<|>]<</span><span class="f_CourierFixed">number</span><span class="f_CourierFixed">>[KB|MB|GB|TB]|none)</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter exclude-protected</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter include-protected</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Where <attribute set> is:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">[a][s][h][r]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal"><img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="mac.png"/> <img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="linux.png"/> The Mac and Linux versions do not support <span class="f_Command">attrib</span>, <span class="f_Command">exclude-protected</span> or <span class="f_Command">include-protected</span>.</p>
<p class="p_Normal">Controls which folders and types of files are compared by using name filtering (<a href="file_masks.html" class="topiclink">file masks</a>), date filtering (<span class="f_Command">cutoff</span>) or other filtering (<span class="f_Command">attrib</span>, <span class="f_Command">size</span>, <span class="f_Command">exclude-protected</span> or <span class="f_Command">include-protected</span>).</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span>Name filters include and exclude files and folders based on their names and paths. Multiple masks can be separated by semicolons. To indicate that a mask is an exclude mask use a leading minus (-). To indicate that a mask affects folders use a trailing backslash (\).</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">cutoff</span> excludes all files older (<span class="f_Command"><</span>) or newer (<span class="f_Command">></span>) than a timestamp or a number of days from the current system date (<number of days><span class="f_Command">days</span>). By default, <span class="f_Command">cutoff:<</span> is used. <span class="f_Command">none</span> can be used to remove date filtering. The date parsing is fairly lenient but if you want to be sure it parses correctly, use the format specified by the operating system's regional settings. (See <span class="f_Command">Control Panel > Regional and Language Settings</span>.) The time is optional and should follow the date (cutoff:"12/31/2012 12:00pm"). Remember to use quotation marks (" ") whenever a term contains a space.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">attrib</span> limits the comparison to files which have an included DOS file attribute (<span class="f_Command">+</span>) and don't have an excluded attribute (<span class="f_Command">-</span>). Use <span class="f_Command">a</span> for archive, <span class="f_Command">s</span> for system, <span class="f_Command">h</span> for hidden and <span class="f_Command">r</span> for read-only. <span class="f_Command">none</span> can be used to remove attribute filtering.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">size</span> excludes all files smaller (<span class="f_Command"><</span>) or larger (<span class="f_Command">></span>) than the given size. By default the size is given in bytes but you can add <span class="f_Command">KB</span>, <span class="f_Command">MB</span>, <span class="f_Command">GB</span> or <span class="f_Command">TB</span> to the end to indicate that the value is in kilobytes, megabytes, gigabytes or terabytes, respectively. <span class="f_Command">none</span> can be used to remove size filtering.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">exclude-protected</span> excludes files and folders that have both system and hidden attributes set.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">include-protected</span> includes files and folders that have both system and hidden attributes set.</p><p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter "*.pas;*.dpr;*.dfm"</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter cutoff:<7days</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter cutoff:>"Dec 31, 2012"</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter cutoff:"12/31/2012 12:00pm"</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter attrib:-sh</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">filter "*.txt;-</span><span class="f_CourierFixed">My Folder</span><span class="f_CourierFixed">\" attrib:+r</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="folder-report" class="hmanchor"></a><span class="f_Subtitle">FOLDER-REPORT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">folder-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates a folder comparison report of the currently loaded base folders. Folders are shown in their current state. To include subfolders add an <span class="f_Command">expand all</span> command before this.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span>, <span class="f_Command">summary</span> or <span class="f_Command">xml</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span>Display filter flags control which files are included in the report. The possible values are <span class="f_Command">display-all</span>, <span class="f_Command">display-mismatches</span>, <span class="f_Command">display-no-orphans</span>, <span class="f_Command">display-mismatches-no-orphans</span>, <span class="f_Command">display-orphans</span>, <span class="f_Command">display-left-newer</span>, <span class="f_Command">display-right-newer</span>, <span class="f_Command">display-left-newer-orphans</span>, <span class="f_Command">display-right-newer-orphans</span> and <span class="f_Command">display-matches</span>. By default, <span class="f_Command">display-all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span>Optional columns can be included, separated by commas, in the report by using the flags <span class="f_Command">column-version</span>, <span class="f_Command">column-size</span>, <span class="f_Command">column-crc</span>, <span class="f_Command">column-timestamp</span>, <span class="f_Command">column-attributes</span>, <span class="f_Command">column-group</span>, <span class="f_Command">column-owner</span> and <span class="f_Command">column-vcs</span>. By default, <span class="f_Command">column-size</span> and <span class="f_Command">column-timestamp</span> are included. <span class="f_Command">column-none</span> can be used by itself to clear the default columns.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span>Use the flag <span class="f_Command">include-file-links</span> to generate file reports and include links to them in the folder report. Only a folder report that is both side-by-side and HTML can use this flag.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span> and <span class="f_Command">output-options</span> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">folder-report layout:side-by-side &</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed"> options:column-size,column-version,column-timestamp &</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed"> output-to:clipboard output-options:html-color</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">folder-report layout:xml output-to:"C:\</span><span class="f_CourierFixed">My Report</span><span class="f_CourierFixed">.xml"</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="hex-report" class="hmanchor"></a><span class="f_Subtitle">HEX-REPORT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">hex-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [<</span><span class="f_CourierFixed">comparison</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates a Hex Compare report of the currently selected files.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span>, <span class="f_Command">summary</span> or <span class="f_Command">interleaved</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional and is used differently for each layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">display-all</span>, <span class="f_Command">display-mismatches</span> or <span class="f_Command">display-matches</span> can be used to control which lines of the comparison are included in all layouts except <span class="f_Command">summary</span>. By default, <span class="f_Command">display-all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">line-numbers</span> includes byte addresses in the <span class="f_Command">side-by-side</span> layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span>, <span class="f_Command">output-options</span> and <comparison> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="load" class="hmanchor"></a><span class="f_Subtitle">LOAD</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">load <</span><span class="f_CourierFixed">session</span><span class="f_CourierFixed">></span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">load [create:(all|left|right)] <</span><span class="f_CourierFixed">left path</span><span class="f_CourierFixed">> [<</span><span class="f_CourierFixed">right path</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">load <default></span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Loads the specified Folder Compare session, the specified base folders or a new Folder Compare session with default settings (<span class="f_Command">load <default></span>). Failure to load a base folder will cause the script to terminate.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span>Loading a session causes all that session's settings, except the display filter (show all, only mismatches, only matches, etc.), to be used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span>Loading base folders uses the currently active settings. By default, the <span style="font-style: italic;">program defaults</span> are used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span>The optional <span class="f_Command">create</span> parameter creates a base folder if it doesn't already exist.</p><p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">load "</span><span class="f_CourierFixed">My Session</span><span class="f_CourierFixed">"</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">load "C:\</span><span class="f_CourierFixed">My Folder</span><span class="f_CourierFixed">" "X:\</span><span class="f_CourierFixed">Your Folder</span><span class="f_CourierFixed">"</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">load <default></span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="log" class="hmanchor"></a><span class="f_Subtitle">LOG</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">log [none|normal|verbose] [[append:]<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Controls how detailed the log is and where the log is stored.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">none</span>, <span class="f_Command">normal</span> and <span class="f_Command">verbose</span> determine the amount of detail used in the log. Logging is initially disabled and begins when the mode is changed from <span class="f_Command">none</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">append:</span> causes logging to add to the file instead of replace it. By default, the log is output as Log.txt in the current folder (e.g. the Windows "Start In" folder in shortcut properties).</p><hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="move" class="hmanchor"></a><span class="f_Subtitle">MOVE</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">move (left->right|right->left)</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Moves the selected files/folders in the direction specified.</p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="moveto" class="hmanchor"></a><span class="f_Subtitle">MOVETO</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">moveto [left|right|all] [path:(relative|base|none)] <</span><span class="f_CourierFixed">path</span><span class="f_CourierFixed">></span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Moves the selected files/folders on the specified side to the specified path using the <a href="opmoveto.html" class="topiclink">path option</a>.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">base</span> keeps the entire folder structure relative to the base folders of all selected items.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">relative</span> keeps the minimum relative folder structure of all selected items.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span>The defaults are <span class="f_Command">all</span> and <span class="f_Command">path:none</span>.</p><p class="p_SingleSpaced"><span class="f_SingleSpaced"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="mp3-report" class="hmanchor"></a><span class="f_Subtitle">MP3-REPORT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">mp3-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [<</span><span class="f_CourierFixed">comparison</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates an MP3 Compare report of the currently selected files.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span> or <span class="f_Command">summary</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional and is used differently for each layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">ignore-unimportant</span> treats differences in unimportant text as matches and is available in all layouts.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">display-all</span>, <span class="f_Command">display-mismatches</span> or <span class="f_Command">display-matches</span> can be used to control which lines of the comparison are included in all layouts except <span class="f_Command">summary</span>. By default, <span class="f_Command">display-all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span>, <span class="f_Command">output-options</span> and <comparison> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="option" class="hmanchor"></a><span class="f_Subtitle">OPTION</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">option stop-on-error</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">option confirm:(prompt|yes-to-all|no-to-all)</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Adjusts script processing options.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">stop-on-error</span> makes the script watch for various error conditions, including file operation errors, and, when one occurs, prompts the user before continuing.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">confirm</span> can use <span class="f_Command">prompt</span>, <span class="f_Command">yes-to-all</span> or <span class="f_Command">no-to-all</span> to handle confirmation dialogs that occur due to file operations. By default, <span class="f_Command">prompt</span> is used.</p><hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="pix-report" class="hmanchor"></a><span class="f_Subtitle">PICTURE-REPORT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">picture-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [<</span><span class="f_CourierFixed">comparison</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates a Picture Compare report of the currently selected files.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span> or <span class="f_Command">summary</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional and is used differently for each layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">ignore-unimportant</span> treats differences in unimportant text as matches in the <span class="f_Command">summary</span> layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span>, <span class="f_Command">output-options</span> and <comparison> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="reg-report" class="hmanchor"></a><span class="f_Subtitle">REGISTRY-REPORT</span> <img width="27" height="12" style="margin:0;width:27px;height:12px;border:none" src="pro.png"/><img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="windows.png"/></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">registry-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [<</span><span class="f_CourierFixed">comparison</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates a Registry Compare report of the currently selected files.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span> or <span class="f_Command">summary</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional and is used differently for each layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">display-all</span>, <span class="f_Command">display-mismatches</span> or <span class="f_Command">display-matches</span> can be used to control which lines of the comparison are included in all layouts except <span class="f_Command">summary</span>. By default, <span class="f_Command">display-all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span>, <span class="f_Command">output-options</span> and <comparison> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="rename" class="hmanchor"></a><span class="f_Subtitle">RENAME</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">rename [regexpr <</span><span class="f_CourierFixed">old mask</span><span class="f_CourierFixed">>] <</span><span class="f_CourierFixed">new mask</span><span class="f_CourierFixed">></span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Performs a <a href="oprename.html" class="topiclink">multi-file rename</a> on the current selection using the specified new mask. <span class="f_Command">regexpr</span> uses an old mask to perform a regular expression rename. By default, a DOS-style rename is performed.</p>
<p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">rename *.bak</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">rename regexpr (...)(...)\.txt $2$1.txt</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="select" class="hmanchor"></a><span class="f_Subtitle">SELECT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">select <</span><span class="f_CourierFixed">selection mask 1</span><span class="f_CourierFixed">> [<</span><span class="f_CourierFixed">selection mask 2</span><span class="f_CourierFixed">> [...]]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Where <selection mask> is one of the following:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">all</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">[(left|right|all).][(exact|diff|newer|older|orphan|all).][(files|folders|all)]</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">empty.folders</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Select controls which files and folders can be operated on. Only files and folders that match at least one of the selection masks are part of the selection.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">left</span>, <span class="f_Command">right</span> or <span class="f_Command">all</span> limits the selection to the specified side. By default, <span class="f_Command">all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">exact</span>, <span class="f_Command">diff</span>, <span class="f_Command">newer</span>, <span class="f_Command">older</span>, <span class="f_Command">orphan</span> or <span class="f_Command">all</span> limits the selection based on results of comparison. <span class="f_Command">diff</span> refers to differences in criteria other than timestamps. To compare timestamps use <span class="f_Command">newer</span> or <span class="f_Command">older</span> instead. Folders must contain only the specified result type to be affected. By default, <span class="f_Command">all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">files</span>, <span class="f_Command">folders</span> or <span class="f_Command">all</span> limits the selection to files, folders or both. By default, <span class="f_Command">all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">empty.folders</span> is a special selection mask that will select empty folders.</p><p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">select all</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">select left</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">select exact</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">select files</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">select right.diff</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">select left.folders</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">select newer.files right.older.files</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="snapshot" class="hmanchor"></a><span class="f_Subtitle">SNAPSHOT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">snapshot [save-crc] [save-version] [expand-archives] [follow-symlinks] [include-empty] [no-filters] left|right|path:<</span><span class="f_CourierFixed">path</span><span class="f_CourierFixed">> [output:<</span><span class="f_CourierFixed">target</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Saves a read-only snapshot of the specified folder.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">save-crc</span> calculates CRC's for all files and stores them as part of the snapshot.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">save-version</span> stores version information for executable files.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">expand-archives</span> stores the contents of archive files in an expanded format.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">follow-symlinks</span> stores files and folders pointed to by symbolic links.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">include-empty</span> stores folders that are empty or contain only excluded files.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">no-filters</span> stores all files regardless of the active filename filters.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">left</span>, <span class="f_Command">right</span> and <span class="f_Command">path</span> indicate which folder is stored. <span class="f_Command">left</span> or <span class="f_Command">right</span> will save a snapshot of one of the loaded base folders and <span class="f_Command">path</span> will save a snapshot of a specified path.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">output</span> is optional and determines where the snapshot will be saved. By default, it will be saved in the current folder.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span>If target is a fully qualified filename, that will be the name of the snapshot. If target doesn't have an extension, <span class="f_Command">.bcss</span> will be used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span>If the target isn't included or refers to a folder a filename will be generated based on the source folder's name and the current system date, eg <span class="f_CourierFixed">folder_2012-12-31.bcss</span>. If necessary an additional number will be added to the generated name to keep it from overwriting existing snapshots.</p><p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">snapshot save-crc save-version no-filters path:C:\ output:D:\</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">snapshot left output:"</span><span class="f_CourierFixed">My Snapshot</span><span class="f_CourierFixed">.bcss"</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="sync" class="hmanchor"></a><span class="f_Subtitle">SYNC</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">sync [visible] [create-empty] (update|mirror):(left->right|right->left|all)</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Synchronizes folders by copying and deleting files. This command <span style="font-style: italic;">does not</span> use the current selection.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">visible</span> enables "Only affect visible files" behavior. Only files in expanded folders will be affected.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">create-empty</span> enables the "Create empty folders" behavior.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">update</span> copies newer and orphan files in the indicated direction, leaving orphans and newer files on the opposite side unchanged. Using <span class="f_Command">all</span> as the direction indicates a bidirectional sync and copies newer and orphan files in both directions.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">mirror</span> makes the target folder identical to the source one. Newer, older, different and orphaned files are all copied to the destination. Orphans in the destination are deleted. The <span class="f_Command">all</span> direction doesn't apply in this context and is not valid.</p><p class="p_Normal">Example:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">sync create-empty mirror:left->right</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="text-report" class="hmanchor"></a><span class="f_Subtitle">TEXT-REPORT</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">text-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [<</span><span class="f_CourierFixed">comparison</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates a Text Compare report of the currently selected files.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span>, <span class="f_Command">summary</span>, <span class="f_Command">interleaved</span>, <span class="f_Command">patch</span>, <span class="f_Command">statistics</span> or <span class="f_Command">xml</span>. Deprecated layouts <span class="f_Command">over-under</span> and <span class="f_Command">composite</span> have been replaced by <span class="f_Command">interleaved</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional and is used differently for each layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">ignore-unimportant</span> treats differences in unimportant text as matches and is available in all layouts.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">display-all</span>, <span class="f_Command">display-mismatches</span>, <span class="f_Command">display-context</span> or <span class="f_Command">display-matches</span> can be used to control which lines of the comparison are included in all layouts except <span class="f_Command">summary</span>, <span class="f_Command">patch</span> and <span class="f_Command">statistics</span>. By default, <span class="f_Command">display-all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">line-numbers</span> includes line numbers in the <span class="f_Command">side-by-side</span> layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">strikeout-left-diffs</span> crosses out left difference lines in the <span class="f_Command">interleaved</span> layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">strikeout-right-diffs</span> crosses out right difference lines in the <span class="f_Command">interleaved</span> layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">patch-normal</span>, <span class="f_Command">patch-context</span> or <span class="f_Command">patch-unified</span> formats are available in the <span class="f_Command">patch</span> layout. By default, <span class="f_Command">patch-normal</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span>, <span class="f_Command">output-options</span> and <comparison> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><p class="p_Normal">The deprecated <span class="f_Command">stats-descriptive</span> option will generate a summary report instead and post a warning to the log. The deprecated <span class="f_Command">stats-tabular</span> option is ignored in the <span class="f_Command">statistics</span> layout: the <span class="f_Command">statistics</span> layout is always tabular (CSV) now.</p>
<p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">text-report layout:interleaved options:display-context &</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed"> output-to:printer output-options:print-color,wrap-word</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">text-report layout:patch options:patch-unified &</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed"> output-to:"</span><span class="f_CourierFixed">My Report</span><span class="f_CourierFixed">.txt"</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="touch" class="hmanchor"></a><span class="f_Subtitle">TOUCH</span></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">touch (left->right|right->left)</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">touch (left|right|all):(now|<</span><span class="f_CourierFixed">timestamp</span><span class="f_CourierFixed">>)</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Copies the timestamps from files on one side to the other or sets the timestamps of all files on a specified side to the current system time (<span class="f_Command">now</span>) or a specified timestamp. You must select files before you can touch them.</p>
<hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Normal"><a id="version-report" class="hmanchor"></a><span class="f_Subtitle">VERSION-REPORT</span> <img width="16" height="16" style="margin:0;width:16px;height:16px;border:none" src="windows.png"/></p>
<p class="p_Normal">Usage:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">version-report layout:<</span><span class="f_CourierFixed">layout</span><span class="f_CourierFixed">> [options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [title:<</span><span class="f_CourierFixed">report title</span><span class="f_CourierFixed">>] output-to:(printer|clipboard|<</span><span class="f_CourierFixed">filename</span><span class="f_CourierFixed">>) [output-options:<</span><span class="f_CourierFixed">options</span><span class="f_CourierFixed">>] [<</span><span class="f_CourierFixed">comparison</span><span class="f_CourierFixed">>]</span></p>
<p class="p_IndentedCode"><span class="f_IndentedCode"> </span></p>
<p class="p_Normal">Generates a Version Compare report of the currently selected files.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">layout</span> controls the report's appearance and can be <span class="f_Command">side-by-side</span> or <span class="f_Command">summary</span>.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">options</span> is optional and is used differently for each layout.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">ignore-unimportant</span> treats differences in unimportant text as matches and is available in all layouts.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">display-all</span>, <span class="f_Command">display-mismatches</span> or <span class="f_Command">display-matches</span> can be used to control which lines of the comparison are included in all layouts except <span class="f_Command">summary</span>. By default, <span class="f_Command">display-all</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span>, <span class="f_Command">output-to</span>, <span class="f_Command">output-options</span> and <comparison> arguments are documented under <a href="scripting_reference.html#report_params" class="topiclink">Common Report Arguments</a>.</p><hr style="height:2px; color:#000000; border-width:0px; background-color:#000000;" /><p class="p_Subtitle"><a id="report_params" class="hmanchor"></a><span class="f_Subtitle">Common report arguments</span></p>
<p class="p_Normal">The report commands (<span class="f_Command">data-report</span>, <span class="f_Command">file-report</span>, <span class="f_Command">folder-report</span>, <span class="f_Command">hex-report</span>, <span class="f_Command">mp3-report</span>, <span class="f_Command">picture-report</span>, <span class="f_Command">registry-report</span>, <span class="f_Command">text-report</span> and <span class="f_Command">version-report</span>) must include information on where the report should be sent and may include additional information on the output format.</p>
<p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">title</span> controls the title that appears at the top of the report.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">output-to</span> controls the output target. It can be <span class="f_Command">printer</span>, <span class="f_Command">clipboard</span> or a filename.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><span class="f_Command">output-options</span> is optional and is used differently for each output target.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">print-color</span> or <span class="f_Command">print-mono</span> color schemes are available for <span class="f_Command">printer</span> output. By default, <span class="f_Command">print-mono</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">print-portrait</span> or <span class="f_Command">print-landscape</span> orientations are available for <span class="f_Command">printer</span> output. By default, <span class="f_Command">print-portrait</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">wrap-none</span>, <span class="f_Command">wrap-character</span> or <span class="f_Command">wrap-word</span> control whether long lines are wrapped. <span class="f_Command">printer</span> output can use all three options. <span class="f_Command">HTML</span> output can use <span class="f_Command">wrap-none</span> and <span class="f_Command">wrap-word</span>. By default, <span class="f_Command">wrap-none</span> is used.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 26px; margin: 0px 0px 0px 0px;"><span style="font-size:10pt; font-family: 'Courier New';color:#000000;display:inline-block;width:13px;margin-left:-13px">o</span><span class="f_Command">html-color</span>, <span class="f_Command">html-mono</span> or <span class="f_Command">html-custom</span> are required to output as HTML instead of plain text. These options are available for <span class="f_Command">clipboard</span> and <span class="f_Command">file</span> outputs. <span class="f_Command">html-custom</span> requires the filename or URL of an external style sheet.</p><p style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 3px 0px 14px 0px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">•</span><comparison> can either be a session name or a pair of filenames. The file report will use the specified comparison instead of the files that have been selected within the script. When using a saved session, the comparison type must match the report type (e.g. a Table Compare session must use <span class="f_Command">data-report</span> or <span class="f_Command">file-report</span>).</p><p class="p_Normal">Examples:</p>
<p class="p_IndentedCode"><span class="f_CourierFixed">data-report layout:interleaved output-to:printer &</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed"> output-options:print-color,print-landscape</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">file-report layout:summary output-to:clipboard &</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed"> output-options:wrap-word,html-color</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed">text-report layout:patch options:patch-unified &</span></p>
<p class="p_IndentedCode"><span class="f_CourierFixed"> output-to:"</span><span class="f_CourierFixed">My Report</span><span class="f_CourierFixed">.txt"</span></p>
</td></tr></table>
</body>
</html>