<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>a4apphack &#187; batch</title>
	<atom:link href="http://a4apphack.com/index.php/tag/batch/feed" rel="self" type="application/rss+xml" />
	<link>http://a4apphack.com</link>
	<description>Get more out of the Apps!</description>
	<lastBuildDate>Thu, 09 Sep 2010 06:44:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<image>
<link>http://a4apphack.com</link>
<url>http://a4apphack.com/blog/wp-content/themes/primus/favicon.ico</url>
<title>a4apphack</title>
</image>
		<item>
		<title>Quickly Create and Compile Batch Files With Portable BatchRun</title>
		<link>http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun</link>
		<comments>http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun#comments</comments>
		<pubDate>Sun, 26 Apr 2009 08:19:54 +0000</pubDate>
		<dc:creator>rajivvishwa</dc:creator>
				<category><![CDATA[Portable]]></category>
		<category><![CDATA[System Tools]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://a4apphack.com/blog/?p=1157</guid>
		<description><![CDATA[Windows Batch files can be used to automate or to run a sequence of operations. This includes starting multiple applications when windows starts up, clearing temp folder when a shortcut key is clicked, Ending certain unwanted processes etc You can even do more than starting programs with the built-in file management functions like Copy, Rename, [...]]]></description>
			<content:encoded><![CDATA[<p>Windows <a title="Batch Files" href="http://en.wikipedia.org/wiki/Batch_file">Batch files</a> can be used to automate or to run a sequence of operations. This includes starting multiple applications when windows starts up, clearing temp folder when a shortcut key is clicked, Ending certain unwanted processes etc</p>
<p><a href="http://a4apphack.com/blog/wp-content/uploads/2009/04/batchrunmain.jpg" rel="shadowbox[post-1157];player=img;" title="Batch Run"><img class="alignnone size-full wp-image-1166" title="Batch Run" src="http://a4apphack.com/blog/wp-content/uploads/2009/04/batchrunmain.jpg" alt="Batch Run" width="530" height="265" /></a></p>
<p><span id="more-1157"></span>You can even do more than starting programs with the built-in file management functions like Copy, Rename, Makedir, Delete, End Process, Kill Process and Text to Clipboard. Batchrun batch files can be launched from Explorer or placed in StartUp folder or on the Desktop.</p>
<p>Check how to <a title="Enable or Disable USB drive with batch file" href="http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun">enable and disable USB devices with batch programming</a></p>
<h3><span style="color: #000000;"><strong> Features</strong></span></h3>
<p><strong> </strong></p>
<ul>
<li>Launch files of any filetype and dialup connections</li>
<li>Internal commands: Run, Copy, Rename, Makedir, Delete, DelTree, End Process, Kill Process, Text to Clipboard</li>
<li>Wildcard support for Copy, Delete and DelTree</li>
<li>Makedir nested folder creation</li>
<li>Drag and Drop between Explorer and Batchrun</li>
<li>Support for date and time tags</li>
<li>Command line parameters can be passed to Batchrun script files</li>
<li>Save batch files directly to Startup and Desktop</li>
</ul>
<p><strong>Note: </strong>If you are using the portable version of BatchRun make sure that you associate &#8216;<strong>*.brs</strong>&#8216; files with this application.</p>
<p><a href="http://a4apphack.com/blog/wp-content/uploads/2009/04/openwith.jpg" rel="shadowbox[post-1157];player=img;" title="Open brs files With"><img class="alignnone size-full wp-image-1168" title="Open brs files With" src="http://a4apphack.com/blog/wp-content/uploads/2009/04/openwith.jpg" alt="Open brs files With" width="406" height="327" /></a></p>
<p><strong>Download BatchRun :</strong> <a target="_blank" href="http://download.outertech.com/batchrun_portable.zip" title="Download"><img style="vertical-align: middle;" height="30" width="30" alt="Download" src="http://img.a4apphack.com/site/a4apphack-download.png" title="Download"/></a></p>
<p>More Info at <a title="BatchRun Homepage" href="http://batchrun.outertech.com/">BatchRun HomePage</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Quickly+Create+and+Compile+Batch+Files+With+Portable+BatchRun+-+http://bit.ly/bZ9GWa&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun&amp;title=Quickly+Create+and+Compile+Batch+Files+With+Portable+BatchRun" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun&amp;title=Quickly+Create+and+Compile+Batch+Files+With+Portable+BatchRun" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun&amp;t=Quickly+Create+and+Compile+Batch+Files+With+Portable+BatchRun" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun&amp;title=Quickly+Create+and+Compile+Batch+Files+With+Portable+BatchRun&amp;summary=Windows%20Batch%20files%20can%20be%20used%20to%20automate%20or%20to%20run%20a%20sequence%20of%20operations.%20This%20includes%20starting%20multiple%20applications%20when%20windows%20starts%20up%2C%20clearing%20temp%20folder%20when%20a%20shortcut%20key%20is%20clicked%2C%20Ending%20certain%20unwanted%20processes%20etc%0D%0A%0D%0A%0D%0A%0D%0AYou%20can%20even%20do%20more%20than%20starting%20programs%20with%20the%20&amp;source=a4apphack" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-orkut">
			<a href="http://promote.orkut.com/preview?nt=orkut.com&amp;tt=Quickly+Create+and+Compile+Batch+Files+With+Portable+BatchRun&amp;du=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun&amp;cn=Windows%20Batch%20files%20can%20be%20used%20to%20automate%20or%20to%20run%20a%20sequence%20of%20operations.%20This%20includes%20starting%20multiple%20applications%20when%20windows%20starts%20up%2C%20clearing%20temp%20folder%20when%20a%20shortcut%20key%20is%20clicked%2C%20Ending%20certain%20unwanted%20processes%20etc%0D%0A%0D%0A%0D%0A%0D%0AYou%20can%20even%20do%20more%20than%20starting%20programs%20with%20the%20" rel="nofollow" class="external" title="Promote this on Orkut">Promote this on Orkut</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun&amp;title=Quickly+Create+and+Compile+Batch+Files+With+Portable+BatchRun" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun&amp;title=Quickly+Create+and+Compile+Batch+Files+With+Portable+BatchRun" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<img src="http://a4apphack.com/blog/?ak_action=api_record_view&id=1157&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://a4apphack.com/softwares/system-tools/quickly-create-compile-batch-files-with-portable-batchrun/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable-Disable Usb Drives With a Batch file in a Click</title>
		<link>http://a4apphack.com/security/enable-disable-usb-with-a-batch-file</link>
		<comments>http://a4apphack.com/security/enable-disable-usb-with-a-batch-file#comments</comments>
		<pubDate>Mon, 15 Dec 2008 16:39:13 +0000</pubDate>
		<dc:creator>rajivvishwa</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://a4apphack.com/blog/?p=108</guid>
		<description><![CDATA[With the help of batch programming we can enable or disable USB device in a single click.ACL permissions are also set during the process. The script will enable the security permissions which will help us to modify certain registry keys, then modifies the required keys and reverts back the permissions. First create four files as [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://a4apphack.com/blog/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/blog/wp-content/thumbnails/108.png&amp;w=150&amp;h=100&amp;zc=1&amp;ft=png' alt='post thumbnail' /></p>
<p>With the help of batch programming we can enable or disable USB device in a single click.ACL permissions are also set during the process.</p>
<p>The script will enable the security permissions which will help us to modify certain registry keys, then modifies the required keys and reverts back the permissions.</p>
<p><span id="more-108"></span>First create four files as mentioned below.</p>
<h3>0.reg</h3>

<div class="wp_syntax"><div class="code"><pre class="winbatch" style="font-family:monospace;">Windows Registry Editor <span style="color: #0000FF;">Version</span> <span style="color: #cc66cc;">5.00</span>
<span style="color: #66cc66;">&#91;</span>HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR<span style="color: #66cc66;">&#93;</span>
<span style="color: #ff0000;">&quot;Start&quot;</span>=dword<span style="color: #FF1010; font-weight: bold;">:00000004</span></pre></div></div>

<h3>1.reg</h3>

<div class="wp_syntax"><div class="code"><pre class="winbatch" style="font-family:monospace;">Windows Registry Editor <span style="color: #0000FF;">Version</span> <span style="color: #cc66cc;">5.00</span>
<span style="color: #66cc66;">&#91;</span>HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR<span style="color: #66cc66;">&#93;</span>
<span style="color: #ff0000;">&quot;Start&quot;</span>=dword<span style="color: #FF1010; font-weight: bold;">:00000003</span></pre></div></div>

<h3><a title="SubInACL Download" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B">SubInACL</a></h3>
<p>Before proceeding further you need to download <a title="SubInACL Download" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B" target="_blank">SubInACL</a> (Incase if the link doesn&#8217;t work, google for &#8216;SubInACL&#8217; to get the MS download link). This tool helps you to set ACL permissions for the registry keys through command line parameters.</p>

<div class="wp_syntax"><div class="code"><pre class="winbatch" style="font-family:monospace;"><span style="color: #66cc66;">@</span>echo <span style="color: #0080FF; font-weight: bold;">off</span>
cls
regedit <span style="color: #66cc66;">/</span>s 0.reg
subinacl.exe <span style="color: #66cc66;">/</span>keyreg systemcurrentcontrolsetservicesusbstor <span style="color: #66cc66;">/</span>deny=system
subinacl.exe <span style="color: #66cc66;">/</span>keyreg systemcurrentcontrolsetservicesusbstor <span style="color: #66cc66;">/</span>deny=users
subinacl.exe <span style="color: #66cc66;">/</span>keyreg systemcurrentcontrolsetservicesusbstor <span style="color: #66cc66;">/</span>deny=administrators
echo.
echo <span style="color: #66cc66;">**</span>Disabled<span style="color: #66cc66;">**</span>
echo.
<span style="color: #66cc66;">//</span><span style="color: #0000FF;">pause</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="winbatch" style="font-family:monospace;"><span style="color: #66cc66;">@</span>echo <span style="color: #0080FF; font-weight: bold;">off</span>
cls
subinacl.exe <span style="color: #66cc66;">/</span>keyreg systemcurrentcontrolsetservicesusbstor <span style="color: #66cc66;">/</span>grant=system
subinacl.exe <span style="color: #66cc66;">/</span>keyreg systemcurrentcontrolsetservicesusbstor <span style="color: #66cc66;">/</span>grant=users
subinacl.exe <span style="color: #66cc66;">/</span>keyreg systemcurrentcontrolsetservicesusbstor <span style="color: #66cc66;">/</span>grant=administrators
regedit <span style="color: #66cc66;">/</span>s 1.reg
echo.
echo <span style="color: #66cc66;">**</span>Enabled<span style="color: #66cc66;">**</span>
echo.
<span style="color: #66cc66;">//</span><span style="color: #0000FF;">pause</span></pre></div></div>

<p>After creating all the above mentioned files, put those in a directory. Make sure you have all the five files in the same directory (i.e 0.reg, 1.reg, enable.bat*, disable.bat* and subinacl.exe).</p>
<p>Now double click the batch file* to see it in action.</p>
<p><em>Note</em>*:</p>
<ul>
<em>Uncomment pause command to see the execution status in the command prompt.</em>
</ul>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Enable-Disable+Usb+Drives+With+a+Batch+file+in+a+Click+-+http://bit.ly/913gTt&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file&amp;title=Enable-Disable+Usb+Drives+With+a+Batch+file+in+a+Click" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file&amp;title=Enable-Disable+Usb+Drives+With+a+Batch+file+in+a+Click" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file&amp;t=Enable-Disable+Usb+Drives+With+a+Batch+file+in+a+Click" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file&amp;title=Enable-Disable+Usb+Drives+With+a+Batch+file+in+a+Click&amp;summary=With%20the%20help%20of%20batch%20programming%20we%20can%20enable%20or%20disable%20USB%20device%20in%20a%20single%20click.ACL%20permissions%20are%20also%20set%20during%20the%20process.%0D%0A%0D%0AThe%20script%20will%20enable%20the%20security%20permissions%20which%20will%20help%20us%20to%20modify%20certain%20registry%20keys%2C%20then%20modifies%20the%20required%20keys%20and%20reverts%20back%20the%20permis&amp;source=a4apphack" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-orkut">
			<a href="http://promote.orkut.com/preview?nt=orkut.com&amp;tt=Enable-Disable+Usb+Drives+With+a+Batch+file+in+a+Click&amp;du=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file&amp;cn=With%20the%20help%20of%20batch%20programming%20we%20can%20enable%20or%20disable%20USB%20device%20in%20a%20single%20click.ACL%20permissions%20are%20also%20set%20during%20the%20process.%0D%0A%0D%0AThe%20script%20will%20enable%20the%20security%20permissions%20which%20will%20help%20us%20to%20modify%20certain%20registry%20keys%2C%20then%20modifies%20the%20required%20keys%20and%20reverts%20back%20the%20permis" rel="nofollow" class="external" title="Promote this on Orkut">Promote this on Orkut</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file&amp;title=Enable-Disable+Usb+Drives+With+a+Batch+file+in+a+Click" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file&amp;title=Enable-Disable+Usb+Drives+With+a+Batch+file+in+a+Click" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://a4apphack.com/security/enable-disable-usb-with-a-batch-file" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<img src="http://a4apphack.com/blog/?ak_action=api_record_view&id=108&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://a4apphack.com/security/enable-disable-usb-with-a-batch-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (request URI is rejected)

Served from: a4apphack.com @ 2010-09-09 17:19:44 -->