<?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>Ramblings of a Coder&#039;s Mind &#187; Command Line</title>
	<atom:link href="http://karunab.com/tag/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://karunab.com</link>
	<description>Got Tech? Will Hack.</description>
	<lastBuildDate>Thu, 06 Oct 2011 10:48:07 +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>Windows File Sharing: Add/Remove folders via Command Line</title>
		<link>http://karunab.com/2010/07/04/windows-file-sharing-addremove-folders-via-command-line/</link>
		<comments>http://karunab.com/2010/07/04/windows-file-sharing-addremove-folders-via-command-line/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 06:35:51 +0000</pubDate>
		<dc:creator>Karun</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows File Share]]></category>

		<guid isPermaLink="false">http://karunab.com/?p=307</guid>
		<description><![CDATA[Your first thought on reading this probably is &#8220;Why in the world would I need to do that?&#8221; Well, I would have thought of it the same way a week back. But it seems some times, Windows does not want &#8230; <a href="http://karunab.com/2010/07/04/windows-file-sharing-addremove-folders-via-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Your first thought on reading this probably is &#8220;Why in the world would I need to do that?&#8221; Well, I would have thought of it the same way a week back. But it seems some times, Windows does not want to give access to certain features such as Advanced File Sharing options. It states that the administrator on my machine has disallowed this operation. Guess what? I&#8217;m the only administrator on this machine! Since I was unable to find the option to get that feature working, I decided to resort to some good old Command Line usage :)</p>
<p>To remove a file/folder from share <img class="alignright size-medium wp-image-309" title="Windows File Sharing - Blocked by administrator" src="http://karunab.com/wp-content/uploads/2010/07/Windows-File-Sharing-Blocked-by-administrator-300x156.png" alt="" width="300" height="156" />and type the following command in an elevated instance of command  prompt:</p>
<blockquote><p>net share <em>&lt;shareName&gt;</em> /delete</p></blockquote>
<p>To add a file/folder to share and type the following command in an elevated instance of command prompt:</p>
<blockquote><p>net share <em>&lt;shareName&gt;</em>=<em>&lt;pathToSharedFile&gt;</em></p></blockquote>
<p>An example of an add and delete command would be as follows</p>
<blockquote><p>net share &#8220;Completed Downloads&#8221;=&#8221;D:\Completed Downloads&#8221;<br />
net share &#8220;Completed Downloads&#8221; /delete</p></blockquote>
<p>At times, I was not required to use an elevated command prompt instance but if you get message stating &#8220;Access Denied&#8221;, you should run the command after elevation. To do so, type out &#8220;Command Prompt&#8221; in your start menu and then use the right click &gt; Run as administrator option or you could simply use Shift+Enter to do the same :)</p>
<p>Simple enough, right? ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://karunab.com/2010/07/04/windows-file-sharing-addremove-folders-via-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

