<?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/"
	>

<channel>
	<title>Developer OneNote &#187; Command line</title>
	<atom:link href="http://devonenote.com/tag/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://devonenote.com</link>
	<description>Emma&#039;s OneNote for Microsoft Windows, Office and Programming</description>
	<lastBuildDate>Thu, 02 Feb 2012 05:19:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Enable/Disable ipv6 in command line</title>
		<link>http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=enabledisable-ipv6-in-command-line</link>
		<comments>http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 16:17:56 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/</guid>
		<description><![CDATA[By default IPv6 is not enabled on windows XP Pro and Windows Server 2003. However, its very easy to enable IPv6 with netsh (net shell) command line tool. Enable ipv6 netsh interface ipv6 install Disable ipv6 netsh interface ipv6 uninstall &#8230; <a href="http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/' rel='bookmark' title='Enable DotNet 3.5 from command line'>Enable DotNet 3.5 from command line</a></li>
<li><a href='http://devonenote.com/2010/07/install-powershell-from-command-line/' rel='bookmark' title='Install PowerShell From Command Line'>Install PowerShell From Command Line</a></li>
<li><a href='http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/' rel='bookmark' title='Enable/disable the built-in administrator account'>Enable/disable the built-in administrator account</a></li>
<li><a href='http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/' rel='bookmark' title='Run IIS in 32-bit mode on a 64 bit machine'>Run IIS in 32-bit mode on a 64 bit machine</a></li>
<li><a href='http://devonenote.com/2010/01/disable-standbysleep/' rel='bookmark' title='Disable standby/sleep'>Disable standby/sleep</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default IPv6 is not enabled on windows XP Pro and Windows Server 2003. However, its very easy to enable IPv6 with netsh (net shell) command line tool.</p>
<h2>Enable ipv6</h2>
<p class="textborder">netsh interface ipv6 install</p>
<h2>Disable ipv6</h2>
<p class="textborder">netsh interface ipv6 uninstall</p>
<p>To verify if ipv6 is enabled, run ipconfig /all and see if ipv6 address is returned.</p>
<p>Note: you can use netsh to enable/disable ipv4, just change ipv6 to ipv4 in above commands.</p>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/' rel='bookmark' title='Enable DotNet 3.5 from command line'>Enable DotNet 3.5 from command line</a></li>
<li><a href='http://devonenote.com/2010/07/install-powershell-from-command-line/' rel='bookmark' title='Install PowerShell From Command Line'>Install PowerShell From Command Line</a></li>
<li><a href='http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/' rel='bookmark' title='Enable/disable the built-in administrator account'>Enable/disable the built-in administrator account</a></li>
<li><a href='http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/' rel='bookmark' title='Run IIS in 32-bit mode on a 64 bit machine'>Run IIS in 32-bit mode on a 64 bit machine</a></li>
<li><a href='http://devonenote.com/2010/01/disable-standbysleep/' rel='bookmark' title='Disable standby/sleep'>Disable standby/sleep</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Run IIS in 32-bit mode on a 64 bit machine</title>
		<link>http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=run-iis-in-32-bit-mode-on-a-64-bit-machine</link>
		<comments>http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 14:10:32 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/</guid>
		<description><![CDATA[To configure ASP.NET to run in 32 bit mode on a 64 bit server. On IIS6, open a command prompt and type following command and press ENTER. cscript //nologo %SYSTEMDRIVE%\InetPub\AdminScripts\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1 On IIS7/7.5, open a command prompt and &#8230; <a href="http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/01/enabling-virtualization-in-your-bios/' rel='bookmark' title='Enabling Virtualization in Your BIOS'>Enabling Virtualization in Your BIOS</a></li>
<li><a href='http://devonenote.com/2010/09/grant-permission-to-defaultapppool-identity/' rel='bookmark' title='Grant Permission to DefaultAppPool Identity'>Grant Permission to DefaultAppPool Identity</a></li>
<li><a href='http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/' rel='bookmark' title='Enable DotNet 3.5 from command line'>Enable DotNet 3.5 from command line</a></li>
<li><a href='http://devonenote.com/2010/05/exceed-windows-server-2008-r2-trial-period/' rel='bookmark' title='Exceed Windows Server 2008 R2 Trial Period'>Exceed Windows Server 2008 R2 Trial Period</a></li>
<li><a href='http://devonenote.com/2010/07/install-powershell-from-command-line/' rel='bookmark' title='Install PowerShell From Command Line'>Install PowerShell From Command Line</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To configure ASP.NET to run in 32 bit mode on a 64 bit server.</p>
<p>On IIS6, open a command prompt and type following command and press ENTER.</p>
<p class="textborder">cscript //nologo %SYSTEMDRIVE%\InetPub\AdminScripts\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1</p>
<p>On IIS7/7.5, open a command prompt and type following command and press ENTER.</p>
<p class="textborder">apppool /apppool.name:MyAppPool32bit /enable32BitAppOnWin64:true</p>
<p>You can set the same in IIS 7 Manager UI by opening the &#8216;Advanced Settings&#8217; for the app pool and change Change the Enable 32-bit Applications to True</p>
<p><a href="http://devonenote.com/wp-content/uploads/2011/03/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px; padding-top: 0px" title="Enable 32 bit applications in IIS 7" border="0" alt="Enable 32 bit applications in IIS 7" align="left" src="http://devonenote.com/wp-content/uploads/2011/03/image_thumb.png" width="394" height="480" /></a></p>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/01/enabling-virtualization-in-your-bios/' rel='bookmark' title='Enabling Virtualization in Your BIOS'>Enabling Virtualization in Your BIOS</a></li>
<li><a href='http://devonenote.com/2010/09/grant-permission-to-defaultapppool-identity/' rel='bookmark' title='Grant Permission to DefaultAppPool Identity'>Grant Permission to DefaultAppPool Identity</a></li>
<li><a href='http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/' rel='bookmark' title='Enable DotNet 3.5 from command line'>Enable DotNet 3.5 from command line</a></li>
<li><a href='http://devonenote.com/2010/05/exceed-windows-server-2008-r2-trial-period/' rel='bookmark' title='Exceed Windows Server 2008 R2 Trial Period'>Exceed Windows Server 2008 R2 Trial Period</a></li>
<li><a href='http://devonenote.com/2010/07/install-powershell-from-command-line/' rel='bookmark' title='Install PowerShell From Command Line'>Install PowerShell From Command Line</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install PowerShell From Command Line</title>
		<link>http://devonenote.com/2010/07/install-powershell-from-command-line/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-powershell-from-command-line</link>
		<comments>http://devonenote.com/2010/07/install-powershell-from-command-line/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 16:42:04 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://devonenote.com/2010/07/install-powershell-from-command-line/</guid>
		<description><![CDATA[To install PowerShell on Windows Server 2008 R2 or Hyper-V Server 2008 R2, following features needs to be installed. NetFx2-ServerCore NetFx3-ServerCore MicrosoftWindowsPowerShell Because Powershell is built on DotNet framework, DotNet 2.0 and 3.5&#160; has to be installed prior to PowerShell &#8230; <a href="http://devonenote.com/2010/07/install-powershell-from-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/' rel='bookmark' title='Enable DotNet 3.5 from command line'>Enable DotNet 3.5 from command line</a></li>
<li><a href='http://devonenote.com/2011/01/configure-powershell-to-use-dotnet-4-0/' rel='bookmark' title='Configure PowerShell to use DotNet 4.0'>Configure PowerShell to use DotNet 4.0</a></li>
<li><a href='http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/' rel='bookmark' title='Enable/Disable ipv6 in command line'>Enable/Disable ipv6 in command line</a></li>
<li><a href='http://devonenote.com/2012/01/using-scvmm-2012-cmdlets-in-powershell/' rel='bookmark' title='Using SCVMM 2012 Cmdlets in PowerShell'>Using SCVMM 2012 Cmdlets in PowerShell</a></li>
<li><a href='http://devonenote.com/2011/01/how-to-run-ps1-scripts/' rel='bookmark' title='How to run ps1 scripts'>How to run ps1 scripts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To install PowerShell on Windows Server 2008 R2 or Hyper-V Server 2008 R2, following features needs to be installed.</p>
<ol>
<li>NetFx2-ServerCore </li>
<li>NetFx3-ServerCore </li>
<li>MicrosoftWindowsPowerShell </li>
</ol>
<p>Because Powershell is built on DotNet framework, DotNet 2.0 and 3.5&#160; has to be installed prior to PowerShell installation.</p>
<p>To install PowerShell from command line, run following from elevated command prompt</p>
<p class="textborder">DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell </p>
<p>Or run following command if it’s an 64bit machine</p>
<p class="textborder">DISM.exe /online /enable-feature /featurename:NetFx2-ServerCore-WOW64&#160; <br />DISM.exe /online /enable-feature /featurename:NetFx3-ServerCore-WOW64&#160; <br />DISM.exe /online /enable-feature /featurename:MicrosoftWindowsPowerShell-WOW64&#160; </p>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/' rel='bookmark' title='Enable DotNet 3.5 from command line'>Enable DotNet 3.5 from command line</a></li>
<li><a href='http://devonenote.com/2011/01/configure-powershell-to-use-dotnet-4-0/' rel='bookmark' title='Configure PowerShell to use DotNet 4.0'>Configure PowerShell to use DotNet 4.0</a></li>
<li><a href='http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/' rel='bookmark' title='Enable/Disable ipv6 in command line'>Enable/Disable ipv6 in command line</a></li>
<li><a href='http://devonenote.com/2012/01/using-scvmm-2012-cmdlets-in-powershell/' rel='bookmark' title='Using SCVMM 2012 Cmdlets in PowerShell'>Using SCVMM 2012 Cmdlets in PowerShell</a></li>
<li><a href='http://devonenote.com/2011/01/how-to-run-ps1-scripts/' rel='bookmark' title='How to run ps1 scripts'>How to run ps1 scripts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2010/07/install-powershell-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable DotNet 3.5 from command line</title>
		<link>http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=enable-dotnet-3-5-from-command-line</link>
		<comments>http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 17:15:14 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[DotNet 3.5]]></category>

		<guid isPermaLink="false">http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/</guid>
		<description><![CDATA[To enable DotNet 3.5 from command line, run following from elevated command prompt dism.exe /online /enable-feature /featurename:NetFx3 Related posts: Install PowerShell From Command Line Enable/Disable ipv6 in command line Enable/disable the built-in administrator account Run IIS in 32-bit mode on &#8230; <a href="http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/07/install-powershell-from-command-line/' rel='bookmark' title='Install PowerShell From Command Line'>Install PowerShell From Command Line</a></li>
<li><a href='http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/' rel='bookmark' title='Enable/Disable ipv6 in command line'>Enable/Disable ipv6 in command line</a></li>
<li><a href='http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/' rel='bookmark' title='Enable/disable the built-in administrator account'>Enable/disable the built-in administrator account</a></li>
<li><a href='http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/' rel='bookmark' title='Run IIS in 32-bit mode on a 64 bit machine'>Run IIS in 32-bit mode on a 64 bit machine</a></li>
<li><a href='http://devonenote.com/2010/06/could-not-load-type-system-servicemodel-activation-httpmodule/' rel='bookmark' title='Could not load type System.ServiceModel.Activation.HttpModule'>Could not load type System.ServiceModel.Activation.HttpModule</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To enable DotNet 3.5 from command line, run following from elevated command prompt</p>
<p class="textborder">dism.exe /online /enable-feature /featurename:NetFx3</p>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/07/install-powershell-from-command-line/' rel='bookmark' title='Install PowerShell From Command Line'>Install PowerShell From Command Line</a></li>
<li><a href='http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/' rel='bookmark' title='Enable/Disable ipv6 in command line'>Enable/Disable ipv6 in command line</a></li>
<li><a href='http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/' rel='bookmark' title='Enable/disable the built-in administrator account'>Enable/disable the built-in administrator account</a></li>
<li><a href='http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/' rel='bookmark' title='Run IIS in 32-bit mode on a 64 bit machine'>Run IIS in 32-bit mode on a 64 bit machine</a></li>
<li><a href='http://devonenote.com/2010/06/could-not-load-type-system-servicemodel-activation-httpmodule/' rel='bookmark' title='Could not load type System.ServiceModel.Activation.HttpModule'>Could not load type System.ServiceModel.Activation.HttpModule</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access denied when creating a folder just deleted</title>
		<link>http://devonenote.com/2010/04/access-denied-when-creating-a-folder-just-deleted/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=access-denied-when-creating-a-folder-just-deleted</link>
		<comments>http://devonenote.com/2010/04/access-denied-when-creating-a-folder-just-deleted/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 20:22:12 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://devonenote.com/2010/04/access-denied-when-creating-a-folder-just-deleted/</guid>
		<description><![CDATA[I have a batch script which remove a folder and re-create it. The command that remove a folder is rd /s/q and the command create folder is mkdir. Recently I see something weird happening, everytime when the folder is deleted &#8230; <a href="http://devonenote.com/2010/04/access-denied-when-creating-a-folder-just-deleted/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/03/uncompress-msi-file/' rel='bookmark' title='Uncompress MSI File'>Uncompress MSI File</a></li>
<li><a href='http://devonenote.com/2010/02/register-comdlg32-ocx-on-x64-win7/' rel='bookmark' title='Register comdlg32.ocx on x64 Win7'>Register comdlg32.ocx on x64 Win7</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have a batch script which remove a folder and re-create it. The command that remove a folder is rd /s/q and the command create folder is mkdir. Recently I see something weird happening, everytime when the folder is deleted and re-created, there is error message Access is denied displayed. However, if I rerun the create folder command laer, it always pass successfully. </p>
<p>The explanation on <a title="http://support.microsoft.com/?id=159199" href="http://support.microsoft.com/?id=159199">http://support.microsoft.com/?id=159199</a> seems make sense, </p>
<blockquote><p>This file is in a state known as pending deletion. This file has been deleted, but there are still handles open to it. NTFS will wait until all handles to this file are closed before updating the index. If an attempt is made to access the file, however, NTFS will deny the attempt. Because the file is listed in the index, but is effectively deleted, you can see the file but you cannot access it.</p>
</blockquote>
<p> The workaround here is add a 60 seconds sleep between the folder deletion and folder creation operation.  </p>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/03/uncompress-msi-file/' rel='bookmark' title='Uncompress MSI File'>Uncompress MSI File</a></li>
<li><a href='http://devonenote.com/2010/02/register-comdlg32-ocx-on-x64-win7/' rel='bookmark' title='Register comdlg32.ocx on x64 Win7'>Register comdlg32.ocx on x64 Win7</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2010/04/access-denied-when-creating-a-folder-just-deleted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch Script Tips</title>
		<link>http://devonenote.com/2010/03/batch-script-tips/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=batch-script-tips</link>
		<comments>http://devonenote.com/2010/03/batch-script-tips/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 08:21:29 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Batch Scripts]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://devonenote.com/2010/03/batch-script-tips/</guid>
		<description><![CDATA[Getting the current working directory cd /d %~dp0 Comment: %0 is the name of the batch file. ~dp gives you the drive and path. Related posts: Synchronizing two batch files Symbolic Links Access denied when creating a folder just deleted &#8230; <a href="http://devonenote.com/2010/03/batch-script-tips/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/01/synchronizing-two-batch-files/' rel='bookmark' title='Synchronizing two batch files'>Synchronizing two batch files</a></li>
<li><a href='http://devonenote.com/2010/02/symbolic-links/' rel='bookmark' title='Symbolic Links'>Symbolic Links</a></li>
<li><a href='http://devonenote.com/2010/04/access-denied-when-creating-a-folder-just-deleted/' rel='bookmark' title='Access denied when creating a folder just deleted'>Access denied when creating a folder just deleted</a></li>
<li><a href='http://devonenote.com/2010/01/how-to-make-your-machine-think-it-has-less-memory-than-it-really-does/' rel='bookmark' title='How to make your machine think it has less memory than it really does'>How to make your machine think it has less memory than it really does</a></li>
<li><a href='http://devonenote.com/2010/03/delete-blank-lines-from-text-file/' rel='bookmark' title='Delete blank lines from text file'>Delete blank lines from text file</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Getting the current working directory<br />
</strong>cd /d %~dp0<br />
Comment: %0 is the name of the batch file. ~dp gives you the drive and path.</p>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/01/synchronizing-two-batch-files/' rel='bookmark' title='Synchronizing two batch files'>Synchronizing two batch files</a></li>
<li><a href='http://devonenote.com/2010/02/symbolic-links/' rel='bookmark' title='Symbolic Links'>Symbolic Links</a></li>
<li><a href='http://devonenote.com/2010/04/access-denied-when-creating-a-folder-just-deleted/' rel='bookmark' title='Access denied when creating a folder just deleted'>Access denied when creating a folder just deleted</a></li>
<li><a href='http://devonenote.com/2010/01/how-to-make-your-machine-think-it-has-less-memory-than-it-really-does/' rel='bookmark' title='How to make your machine think it has less memory than it really does'>How to make your machine think it has less memory than it really does</a></li>
<li><a href='http://devonenote.com/2010/03/delete-blank-lines-from-text-file/' rel='bookmark' title='Delete blank lines from text file'>Delete blank lines from text file</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2010/03/batch-script-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Control panel applets</title>
		<link>http://devonenote.com/2010/02/control-panel-applets/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=control-panel-applets</link>
		<comments>http://devonenote.com/2010/02/control-panel-applets/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 03:47:30 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Command line]]></category>

		<guid isPermaLink="false">http://devonenote.com/2010/02/control-panel-applets/</guid>
		<description><![CDATA[Control panel applets (.CPL) is a shortcut to launch administrator tools quickly. These are some that used frequently after new OS is setup. intl.cpl &#8211; Regional and Language Options timedate.cpl &#8211; Date and Time Properties inetcpl.cpl &#8211; Internet Properties ncpa.cpl &#8230; <a href="http://devonenote.com/2010/02/control-panel-applets/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/01/launch-regional-and-language-settings-from-command-line/' rel='bookmark' title='Launch Regional and Language Settings'>Launch Regional and Language Settings</a></li>
<li><a href='http://devonenote.com/2010/01/disable-standbysleep/' rel='bookmark' title='Disable standby/sleep'>Disable standby/sleep</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Control panel applets (.CPL) is a shortcut to launch administrator tools quickly.</p>
<p>These are some that used frequently after new OS is setup.</p>
<ul>
<li>intl.cpl &#8211; Regional and Language Options</li>
<li>timedate.cpl &#8211; Date and Time Properties</li>
<li>inetcpl.cpl &#8211; Internet Properties</li>
<li>ncpa.cpl &#8211; Network Connections</li>
<li>powercfg.cpl &#8211; Power Options Properties</li>
</ul>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/01/launch-regional-and-language-settings-from-command-line/' rel='bookmark' title='Launch Regional and Language Settings'>Launch Regional and Language Settings</a></li>
<li><a href='http://devonenote.com/2010/01/disable-standbysleep/' rel='bookmark' title='Disable standby/sleep'>Disable standby/sleep</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2010/02/control-panel-applets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable standby/sleep</title>
		<link>http://devonenote.com/2010/01/disable-standbysleep/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-standbysleep</link>
		<comments>http://devonenote.com/2010/01/disable-standbysleep/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 12:48:56 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Batch Scripts]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Windows How to]]></category>

		<guid isPermaLink="false">http://devonenote.com/2010/01/disable-standbysleep/</guid>
		<description><![CDATA[powercfg.exe is a windows built in tool to config power management. powercfg.exe is a command line utility, it’s easy to integrate powercfg.exe into scripts. Turn hibernation off powercfg -hibernate OFF Set the power configuration to High Performance powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c &#8230; <a href="http://devonenote.com/2010/01/disable-standbysleep/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/02/control-panel-applets/' rel='bookmark' title='Control panel applets'>Control panel applets</a></li>
<li><a href='http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/' rel='bookmark' title='Enable/disable the built-in administrator account'>Enable/disable the built-in administrator account</a></li>
<li><a href='http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/' rel='bookmark' title='Enable/Disable ipv6 in command line'>Enable/Disable ipv6 in command line</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>powercfg.exe is a windows built in tool to config power management. powercfg.exe is a command line utility, it’s easy to integrate powercfg.exe into scripts. </p>
<h3>Turn hibernation off</h3>
<p class="textborder">powercfg -hibernate OFF</p>
<h3>Set the power configuration to High Performance</h3>
<p class="textborder"></strong>powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</p>
<h3>Set the absentia power scheme (the scheme used when no one is logged in)</h3>
<p class="textborder">powercfg.exe -setabsentia 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</p>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/02/control-panel-applets/' rel='bookmark' title='Control panel applets'>Control panel applets</a></li>
<li><a href='http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/' rel='bookmark' title='Enable/disable the built-in administrator account'>Enable/disable the built-in administrator account</a></li>
<li><a href='http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/' rel='bookmark' title='Enable/Disable ipv6 in command line'>Enable/Disable ipv6 in command line</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2010/01/disable-standbysleep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable/disable the built-in administrator account</title>
		<link>http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=enabledisable-the-built-in-administrator-account</link>
		<comments>http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 03:36:43 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Batch Scripts]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/</guid>
		<description><![CDATA[Enabling the built-in administrator account: net user administrator /active:yes Disabling the built-in administrator account: net user administrator /active:no Note: Must use an elevated command prompt for this command to work. Related posts: Enable DotNet 3.5 from command line Enable/Disable ipv6 &#8230; <a href="http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/' rel='bookmark' title='Enable DotNet 3.5 from command line'>Enable DotNet 3.5 from command line</a></li>
<li><a href='http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/' rel='bookmark' title='Enable/Disable ipv6 in command line'>Enable/Disable ipv6 in command line</a></li>
<li><a href='http://devonenote.com/2010/01/disable-standbysleep/' rel='bookmark' title='Disable standby/sleep'>Disable standby/sleep</a></li>
<li><a href='http://devonenote.com/2010/07/install-powershell-from-command-line/' rel='bookmark' title='Install PowerShell From Command Line'>Install PowerShell From Command Line</a></li>
<li><a href='http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/' rel='bookmark' title='Run IIS in 32-bit mode on a 64 bit machine'>Run IIS in 32-bit mode on a 64 bit machine</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Enabling the built-in administrator account: </h3>
<p class="textborder">net user administrator /active:yes </p>
<h3>Disabling the built-in administrator account: </h3>
<p class="textborder">net user administrator /active:no</p>
<p>Note: Must use an elevated command prompt for this command to work.</p>
<p>Related posts:<ol>
<li><a href='http://devonenote.com/2010/07/enable-dotnet-3-5-from-command-line/' rel='bookmark' title='Enable DotNet 3.5 from command line'>Enable DotNet 3.5 from command line</a></li>
<li><a href='http://devonenote.com/2011/01/enabledisable-ipv6-in-command-line/' rel='bookmark' title='Enable/Disable ipv6 in command line'>Enable/Disable ipv6 in command line</a></li>
<li><a href='http://devonenote.com/2010/01/disable-standbysleep/' rel='bookmark' title='Disable standby/sleep'>Disable standby/sleep</a></li>
<li><a href='http://devonenote.com/2010/07/install-powershell-from-command-line/' rel='bookmark' title='Install PowerShell From Command Line'>Install PowerShell From Command Line</a></li>
<li><a href='http://devonenote.com/2011/01/run-iis-in-32-bit-mode-on-a-64-bit-machine/' rel='bookmark' title='Run IIS in 32-bit mode on a 64 bit machine'>Run IIS in 32-bit mode on a 64 bit machine</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2010/01/enabledisable-the-built-in-administrator-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shutdown or reboot the computer</title>
		<link>http://devonenote.com/2010/01/shutdown-or-reboot-the-computer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shutdown-or-reboot-the-computer</link>
		<comments>http://devonenote.com/2010/01/shutdown-or-reboot-the-computer/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 15:31:08 +0000</pubDate>
		<dc:creator>emma</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Batch Scripts]]></category>
		<category><![CDATA[Command line]]></category>

		<guid isPermaLink="false">http://devonenote.com/2010/01/shutdown-or-reboot-the-computer/</guid>
		<description><![CDATA[Shut down shutdown /s /t 0 Reboot shutdown /r /t 0 No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<h3>Shut down</h3>
<p>shutdown /s /t 0</p>
<h3>Reboot</h3>
<p>  shutdown /r /t 0</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://devonenote.com/2010/01/shutdown-or-reboot-the-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

