hmLoadTopic({
hmKeywords:"scheduled task,scripts,scripts scheduling",
hmTitle:"Scheduling a Script",
hmDescription:"You can use Beyond Compare\'s script processor to perform certain tasks, such as synchronizing folders, without interaction.  For example, to automate a backup of \"C:\\My Folder\",",
hmPrevLink:"sample_scripts.html",
hmNextLink:"settings_reference.html",
hmParentLink:"scripts.html",
hmBreadCrumbs:"<a href=\"using_bc.html\">Using Beyond Compare<\/a> &gt; <a href=\"scripts.html\">Scripts<\/a>",
hmTitlePath:"Using Beyond Compare > Scripts > Scheduling a Script",
hmHeader:"<h1 class=\"p_Heading1\"><span class=\"f_Heading1\">Scheduling a Script<\/span><\/h1>\n\r",
hmBody:"<p class=\"p_Normal\"><img style=\"margin:0;width:1.0000rem;height:1.0000rem;border:none\" src=\".\/images\/windows.png\"\/><\/p>\n\r<p class=\"p_Normal\">You can use Beyond Compare\'s script processor to perform certain tasks, such as synchronizing folders, without interaction.  For example, to automate a backup of &quot;C:\\My Folder&quot;, enter the following script commands into Notepad:<\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_CourierFixed\">load &quot;C:\\My Folder&quot; &quot;C:\\My Backups&quot;<\/span><\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_CourierFixed\">expand all<\/span><\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_CourierFixed\">select left.newer.files left.orphan.files<\/span><\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_CourierFixed\">copy left-&gt;right<\/span><\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_IndentedCode\">&nbsp;<\/span><\/p>\n\r<p class=\"p_Normal\">Save this text file as <span class=\"f_CourierFixed\">&quot;C:\\My Scripts\\Sync.txt&quot;<\/span>.<\/p>\n\r<p class=\"p_Normal\">To run a Beyond Compare script at any desired time:<\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 1.2500rem; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:1.2500rem;margin-left:-1.2500rem\">1.<\/span>In Windows Task Scheduler, pick <span class=\"f_Command\">Action &gt; Create Basic Task<\/span> to get a wizard.<\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 1.2500rem; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:1.2500rem;margin-left:-1.2500rem\">2.<\/span>In <span class=\"f_Command\">Action<\/span>, pick <span class=\"f_Command\">Start a program<\/span>.<\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 1.2500rem; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:1.2500rem;margin-left:-1.2500rem\">3.<\/span>In <span class=\"f_Command\">Program\/script<\/span>, pick the Beyond Compare 5 executable.<\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 1.2500rem; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:1.2500rem;margin-left:-1.2500rem\">4.<\/span>In <span class=\"f_Command\">Add arguments<\/span>, add a reference to your script file:<\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_CourierFixed\">@Sync.txt<\/span><\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_IndentedCode\">&nbsp;<\/span><\/p>\n\r<p class=\"p_Normal\" style=\"text-indent: 0; padding-left: 1.2500rem; margin-left: 0;\"><span class=\"f_Normal\" style=\"display:inline-block;width:1.2500rem;margin-left:-1.2500rem\">5.<\/span>In <span class=\"f_Command\">Start in<\/span>, pick the script folder:<\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_CourierFixed\">C:\\My Scripts<\/span><\/p>\n\r<p class=\"p_IndentedCode\"><span class=\"f_IndentedCode\">&nbsp;<\/span><\/p>\n\r<p class=\"p_Normal\">We recommend including a log command in your script.  If you have trouble with your script, check out the Scheduled Tasks error log: &quot;SchedLgU.txt&quot; in your Windows folder.<\/p>\n\r"
})
