{"id":2233,"date":"2017-01-21T11:54:32","date_gmt":"2017-01-21T11:54:32","guid":{"rendered":"http:\/\/www.gssezisoft.com\/main\/?page_id=2233"},"modified":"2018-07-23T22:25:46","modified_gmt":"2018-07-23T22:25:46","slug":"batchtools","status":"publish","type":"page","link":"http:\/\/www.gssezisoft.com\/main\/batchtools\/","title":{"rendered":"Batch Tools"},"content":{"rendered":"<p><img loading=\"lazy\" src=\"http:\/\/www.gssezisoft.com\/Products\/BatchTools\/Images\/batchtools-150x150.png\" alt=\"BatchTools\" width=\"150\" height=\"150\" \/>\n<\/p>\n<p>Batch files are a fast and simple way of automating mundane things. There&#8217;s not a lot to them &#8211; if you can type in a command, you can type up a batch file. It&#8217;s about as easy as it gets and it has been built into every version of Windows since before even Windows.<\/p>\n<p>There are a lot of pluses to batch files. They don&#8217;t need compiling so updates are simple: just edit the file and rerun it. In a sense, they&#8217;re even portable between devices and operating systems. The &quot;in a sense&quot; is that all operating systems support them. Again, this also goes back to before Windows existed; and even to before MSDOS existed.<\/p>\n<h2 id=\"paths\">Paths<\/h2>\n<p>The downside to batch files is that in a modern era of large hard disk sizes, we typically have very long paths to find a specific file.<\/p>\n<p>The workarounds normally involve starting your batch file in the right directory and that simplifies paths to the required files; but it also means you can&#8217;t run the same batch file to do the same things with a different set of files elsewhere. You can end up with two (or three, or four, &#8230;) copies of the same batch file. The one batch file gets saved with each set of files that might need it. Updating the batch file becomes complicated because you have to find and update all the copies. Shortcuts to a single copy but with different &quot;Start in&quot; directories work better; but you are still left wondering, &quot;which set of files is this shortcut going to process?&quot;<\/p>\n<p>Wouldn&#8217;t it be easier if you could just pick the set of files when you run the batch file? Wouldn&#8217;t that save having to have a copy (or a shortcut) for every directory that might ever contain a set of files?<\/p>\n<h2 id=\"user-input\">User Input<\/h2>\n<p>In the Windows environment, batch files also suffer from a lack of user input. You can run a batch file, and it can tell you some things (like with the &quot;echo &#8230;&quot; command); but it can&#8217;t ask questions. You have to specify everything it needs to know, on the command line when you run the batch file.<\/p>\n<p>That&#8217;s not great, but it does work &#8211; provided you are at a command prompt. That doesn&#8217;t work at all if you double-click a batch file from Windows Explorer.<\/p>\n<p>What if you could ask questions in a batch file? You wouldn&#8217;t have to remember all the settings that are available for every batch file you have. You wouldn&#8217;t have to get their order right on the command line. You could just double-click a batch file and answer the questions.<\/p>\n<h1 id=\"how-to-build-better-batch-files\">How to Build Better Batch Files<\/h1>\n<p>The BatchTools programs include: say.exe, ask.exe and run.exe. They allow you to:<\/p>\n<ul>\n<li>\n<p>get a line of input from the user (eg &quot;What email should I send it to?&quot;)<\/p>\n<\/li>\n<li>\n<p>allow the user to pick a directory (eg this set of files)<\/p>\n<\/li>\n<li>\n<p>allow the user to pick a file (eg &quot;Which sales figures should I total?&quot;)<\/p>\n<\/li>\n<li>\n<p>get a user choice from a list (eg &quot;What dress size is the order for?&quot;)<\/p>\n<\/li>\n<li>\n<p>get simple yes\/no or proceed\/cancel responses.<\/p>\n<\/li>\n<\/ul>\n<p>You have all of the features of the batch language plus a few programs to enhance it. The BatchTools can even provide a level of &quot;indirection&quot; &#8211; you can run a program that figures out what to run. This allows you to run any normal program but with the user supplied arguments.<\/p>\n<p>&quot;echo&quot; is still available to you, but you might prefer &quot;say&quot;. That gives you a more modern and user-friendly look.<\/p>\n<p>Whilst the batch files are still just batch files, you get things like:<br \/><img src=\"http:\/\/www.gssezisoft.com\/Products\/BatchTools\/Images\/batchtools-main-640x480.jpg\" alt=\"BatchTools Main Windows\" \/><\/p>\n<h1 id=\"what-does-it-cost\">What Does It Cost?<\/h1>\n<p>Nothing. It&#8217;s freeware. Free for personal or commercial use.<\/p>\n<h1 id=\"where-do-i-get-it\">Where Do I Get It?<\/h1>\n<p>Right here:<\/p>\n<p>\n<center><br \/>\n<a href=\"http:\/\/www.gssezisoft.com\/download\/1000010000\/BatchTools\/BatchTools-Install.exe\" class=\"buy-button\"><span>GET IT NOW<\/span><\/a><br \/>\n<\/center>\n<\/p>\n<h1 id=\"requirements\">Requirements<\/h1>\n<p>Requires Windows (XP\/Vista\/7\/8\/10).<\/p>\n<h1 id=\"more-information\">More Information<\/h1>\n<p>Read the frequently asked questions: <a href=\"http:\/\/www.gssezisoft.com\/main\/batchtools-faqs\/\">FAQ<\/a>.<\/p>\n<p>Read the documentation: <a href=\"http:\/\/www.gssezisoft.com\/Products\/BatchTools\/Help\/\">Documentation<\/a><\/p>\n<p>Download a specific version: <a href=\"http:\/\/www.gssezisoft.com\/main\/batchtools-download\/\">Downloads<\/a><\/p>\n<ul class=\"ess-buttons ess-buttons--text\">\n<li>\t\t<a class=\"ess-button ess-button--facebook\"\n\t\t\thref=\"https:\/\/www.facebook.com\/dialog\/feed?app_id=1699366990355594&amp;display=popup&amp;caption=Batch%20Tools&amp;link=http%3A%2F%2Fwww.gssezisoft.com%2Fmain%2Fbatchtools%2F&amp;description=%0D%0A%0D%0ABatch%20files%20are%20a%20fast%20and%20simple%20way%20of%20automating%20mundane%20things.%20There%27s%20not%20a%20lot%20to%20them%20-%20if%20you%20can%20type%20in%20a%20command%2C%20you%20can%20type%20up%20a%20batch%20file.%20It%27s%20about%20%E2%80%A6&amp;redirect_uri=http%3A%2F%2Fwww.gssezisoft.com%2Fmain%2Fbatchtools%2F\"\n\t\t\tonclick=\"window.open(this.href, 'facebookwindow','left=20,top=20,width=600,height=700,toolbar=0,resizable=1'); return false;\"\n\t\t\ttitle=\"Share on Facebook\"\n\t\t\ttarget=\"_blank\">\n\t\t\t<div class=\"ess-button-inner\">\n\t\t\t\t<svg class=\"ess-icon\"\n\t\t\t\t\tversion=\"1.1\"\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\txmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\"\n\t\t\t\t\tviewBox=\"0 0 1024 1024\">\n\t\t\t\t\t<path d=\"M853.35 0h-682.702c-94.25 0-170.648 76.42-170.648 170.686v682.63c0 94.266 76.398 170.684 170.648 170.684h341.352v-448h-128v-128h128v-96c0-88.366 71.634-160 160-160h160v128h-160c-17.674 0-32 14.328-32 32v96h176l-32 128h-144v448h213.35c94.25 0 170.65-76.418 170.65-170.684v-682.63c0-94.266-76.4-170.686-170.65-170.686z\"><\/path>\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"ess-share-text\">Share<\/span>\n\t\t\t<\/div>\n\n\t\t\t\n\t\t\t\n\t\t<\/a>\n\t\t<\/li>\n<li>\t\t<a class=\"ess-button ess-button--twitter\"\n\t\t\thref=\"http:\/\/twitter.com\/intent\/tweet?text=Batch%20Tools%20http%3A%2F%2Fwww.gssezisoft.com%2Fmain%2Fbatchtools%2F\"\n\t\t\tonclick=\"window.open(this.href, 'twitterwindow','left=20,top=20,width=600,height=300,toolbar=0,resizable=1'); return false;\"\n\t\t\ttitle=\"Tweet\"\n\t\t\ttarget=\"_blank\">\n\t\t\t<div class=\"ess-button-inner\">\n\t\t\t\t<svg class=\"ess-icon\"\n\t\t\t\t\tversion=\"1.1\"\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\txmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\"\n\t\t\t\t\tviewBox=\"0 0 1024 1024\">\n\t\t\t\t\t<path d=\"M1024 194.418c-37.676 16.708-78.164 28.002-120.66 33.080 43.372-26 76.686-67.17 92.372-116.23-40.596 24.078-85.556 41.56-133.41 50.98-38.32-40.83-92.922-66.34-153.346-66.34-116.022 0-210.088 94.058-210.088 210.078 0 16.466 1.858 32.5 5.44 47.878-174.6-8.764-329.402-92.4-433.018-219.506-18.084 31.028-28.446 67.116-28.446 105.618 0 72.888 37.088 137.192 93.46 174.866-34.438-1.092-66.832-10.542-95.154-26.278-0.020 0.876-0.020 1.756-0.020 2.642 0 101.788 72.418 186.696 168.522 206-17.626 4.8-36.188 7.372-55.348 7.372-13.538 0-26.698-1.32-39.528-3.772 26.736 83.46 104.32 144.206 196.252 145.896-71.9 56.35-162.486 89.934-260.916 89.934-16.958 0-33.68-0.994-50.116-2.94 92.972 59.61 203.402 94.394 322.042 94.394 386.422 0 597.736-320.124 597.736-597.744 0-9.108-0.206-18.168-0.61-27.18 41.056-29.62 76.672-66.62 104.836-108.748z\"><\/path>\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"ess-share-text\">Tweet<\/span>\n\t\t\t<\/div>\n\n\t\t\t\n\t\t\t\n\t\t<\/a>\n\t\t<\/li>\n<li>\t\t<a class=\"ess-button ess-button--gplus\"\n\t\t\thref=\"https:\/\/plus.google.com\/share?url=http:\/\/www.gssezisoft.com\/main\/batchtools\/\"\n\t\t\tonclick=\"window.open(this.href,'googlepluswindow', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;\"\n\t\t\ttitle=\"Share on Google\"\n\t\t\ttarget=\"_blank\">\n\t\t\t<div class=\"ess-button-inner\">\n\t\t\t\t<svg class=\"ess-icon\"\n\t\t\t\t\tversion=\"1.1\"\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\txmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\"\n\t\t\t\t\tviewBox=\"0 0 1024 1024\">\n\t\t\t\t\t<path d=\"M559.066 64c0 0-200.956 0-267.94 0-120.12 0-233.17 91.006-233.17 196.422 0 107.726 81.882 194.666 204.088 194.666 8.498 0 16.756-0.17 24.842-0.752-7.93 15.186-13.602 32.288-13.602 50.042 0 29.938 16.104 54.21 36.468 74.024-15.386 0-30.242 0.448-46.452 0.448-148.782-0.002-263.3 94.758-263.3 193.020 0 96.778 125.542 157.314 274.334 157.314 169.624 0 263.306-96.244 263.306-193.028 0-77.6-22.896-124.072-93.686-174.134-24.216-17.144-70.53-58.836-70.53-83.344 0-28.72 8.196-42.868 51.428-76.646 44.312-34.624 75.672-83.302 75.672-139.916 0-67.406-30.020-133.098-86.372-154.772h84.954l59.96-43.344zM465.48 719.458c2.126 8.972 3.284 18.206 3.284 27.628 0 78.2-50.392 139.31-194.974 139.31-102.842 0-177.116-65.104-177.116-143.3 0-76.642 92.126-140.444 194.964-139.332 24 0.254 46.368 4.116 66.67 10.69 55.826 38.826 95.876 60.762 107.172 105.004zM300.818 427.776c-69.038-2.064-134.636-77.226-146.552-167.86-11.916-90.666 34.37-160.042 103.388-157.99 69.010 2.074 134.638 74.814 146.558 165.458 11.906 90.66-34.39 162.458-103.394 160.392zM832 256v-192h-64v192h-192v64h192v192h64v-192h192v-64z\"><\/path>\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"ess-share-text\">Share<\/span>\n\t\t\t<\/div>\n\n\t\t\t\n\t\t\t\n\t\t<\/a>\n\t\t<\/li>\n<li>\t\t<a class=\"ess-button ess-button--pinterest\"\n\t\t\thref=\"http:\/\/pinterest.com\/pin\/create\/bookmarklet\/?media=&amp;url=http%3A%2F%2Fwww.gssezisoft.com%2Fmain%2Fbatchtools%2F&amp;is_video=false&amp;description=Batch%20Tools%20-%20%0D%0A%0D%0ABatch%20files%20are%20a%20fast%20and%20simple%20way%20of%20automating%20mundane%20things.%20There%27s%20not%20a%20lot%20to%20them%20-%20if%20you%20can%20type%20in%20a%20command%2C%20you%20can%20type%20up%20a%20batch%20file.%20It%27s%20about%20%E2%80%A6\"\n\t\t\tonclick=\"window.open(this.href, 'pinterestwindow','left=20,top=20,width=750,height=750,toolbar=0,resizable=1');return false;\"\n\t\t\ttitle=\"Pin\"\n\t\t\ttarget=\"_blank\">\n\t\t\t<div class=\"ess-button-inner\">\n\t\t\t\t<svg class=\"ess-icon\"\n\t\t\t\t\tversion=\"1.1\"\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\txmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\"\n\t\t\t\t\tviewBox=\"0 0 1024 1024\">\n\t\t\t\t\t<path d=\"M512.006 0.002c-282.774 0-512.006 229.23-512.006 511.996 0 216.906 134.952 402.166 325.414 476.772-4.478-40.508-8.518-102.644 1.774-146.876 9.298-39.954 60.040-254.5 60.040-254.5s-15.32-30.664-15.32-76.008c0-71.19 41.268-124.336 92.644-124.336 43.68 0 64.784 32.794 64.784 72.12 0 43.928-27.964 109.604-42.404 170.464-12.060 50.972 25.556 92.536 75.814 92.536 91.008 0 160.958-95.96 160.958-234.466 0-122.584-88.088-208.298-213.868-208.298-145.678 0-231.186 109.274-231.186 222.19 0 44.008 16.95 91.196 38.102 116.844 4.182 5.070 4.792 9.516 3.548 14.68-3.884 16.18-12.522 50.96-14.216 58.076-2.234 9.368-7.422 11.356-17.124 6.842-63.95-29.77-103.926-123.264-103.926-198.348 0-161.51 117.348-309.834 338.294-309.834 177.61 0 315.634 126.56 315.634 295.704 0 176.458-111.256 318.466-265.676 318.466-51.886 0-100.652-26.958-117.35-58.796 0 0-25.672 97.766-31.894 121.71-11.564 44.468-42.768 100.218-63.642 134.226 47.91 14.832 98.818 22.832 151.604 22.832 282.768-0.002 511.996-229.23 511.996-512 0-282.766-229.228-511.996-511.994-511.996z\"><\/path>\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"ess-share-text\">Pin<\/span>\n\t\t\t<\/div>\n\n\t\t\t\n\t\t\t\n\t\t<\/a>\n\t\t<\/li>\n<li>\t\t<a class=\"ess-button ess-button--email\"\n\t\t\thref=\"mailto:?subject=Batch%20Tools&amp;body=%0D%0A%0D%0ABatch%20files%20are%20a%20fast%20and%20simple%20way%20of%20automating%20mundane%20things.%20There%27s%20not%20a%20lot%20to%20them%20-%20if%20you%20can%20type%20in%20a%20command%2C%20you%20can%20type%20up%20a%20batch%20file.%20It%27s%20about%20%E2%80%A6%20http%3A%2F%2Fwww.gssezisoft.com%2Fmain%2Fbatchtools%2F\"\n\t\t\tonclick=\"\"\n\t\t\ttitle=\"Email\"\n\t\t\ttarget=\"_blank\">\n\t\t\t<div class=\"ess-button-inner\">\n\t\t\t\t<svg class=\"ess-icon\"\n\t\t\t\t\tversion=\"1.1\"\n\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\txmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\"\n\t\t\t\t\tviewBox=\"0 0 1024 1024\">\n\t\t\t\t\t<path d=\"M928 128h-832c-52.8 0-96 43.2-96 96v640c0 52.8 43.2 96 96 96h832c52.8 0 96-43.2 96-96v-640c0-52.8-43.2-96-96-96zM398.74 550.372l-270.74 210.892v-501.642l270.74 290.75zM176.38 256h671.24l-335.62 252-335.62-252zM409.288 561.698l102.712 110.302 102.71-110.302 210.554 270.302h-626.528l210.552-270.302zM625.26 550.372l270.74-290.75v501.642l-270.74-210.892z\"><\/path>\t\t\t\t<\/svg>\n\t\t\t\t<span class=\"ess-share-text\">Email<\/span>\n\t\t\t<\/div>\n\n\t\t\t\n\t\t\t\n\t\t<\/a>\n\t\t<\/li>\n<\/ul>\n\n<div id=\"ad-prod-end\">\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Batch files are a fast and simple way of automating mundane things. There&#8217;s not a lot to them &#8211; if you can type in a command, you can type up a batch file. It&#8217;s about as easy as it gets and it has been built into every version of Windows since before even Windows. There &hellip; <a href=\"http:\/\/www.gssezisoft.com\/main\/batchtools\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Batch Tools<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/pages\/2233"}],"collection":[{"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/comments?post=2233"}],"version-history":[{"count":3,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/pages\/2233\/revisions"}],"predecessor-version":[{"id":2467,"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/pages\/2233\/revisions\/2467"}],"wp:attachment":[{"href":"http:\/\/www.gssezisoft.com\/main\/wp-json\/wp\/v2\/media?parent=2233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}