<?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>Carl's Blog &#187; How to clear both the user and Windows temp directory efficiently.</title>
	<atom:link href="http://www.css-networks.com/tag/how-to-clear-both-the-user-and-windows-temp-directory-efficiently/feed" rel="self" type="application/rss+xml" />
	<link>http://www.css-networks.com</link>
	<description>Carl's blog about stuff</description>
	<lastBuildDate>Fri, 27 Aug 2010 11:44:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to clear the temp directory.</title>
		<link>http://www.css-networks.com/2008/08/how-to-clear-the-temp-directory.html</link>
		<comments>http://www.css-networks.com/2008/08/how-to-clear-the-temp-directory.html#comments</comments>
		<pubDate>Thu, 21 Aug 2008 18:05:58 +0000</pubDate>
		<dc:creator>Carl Farrington</dc:creator>
				<category><![CDATA[Computer Stuff]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[How to clear both the user and Windows temp directory efficiently.]]></category>

		<guid isPermaLink="false">http://www.css-networks.com/?p=139</guid>
		<description><![CDATA[This is such a simple thing that nobody would ever consider writing a blog entry or howto about it, right? The thing is though, I frequently see IT support technicians using Windows Explorer, clicking through into the user&#8217;s temp folder, highlighting everything and attempting to delete. They are interrupted (and the process aborted) by a message stating [...]]]></description>
			<content:encoded><![CDATA[<p>This is such a simple thing that nobody would ever consider writing a blog entry or howto about it, right? The thing is though, I frequently see IT support technicians using Windows Explorer, clicking through into the user&#8217;s temp folder, highlighting everything and attempting to delete. They are interrupted (and the process aborted) by a message stating that a particular file was in use and could not be deleted, so they de-select that one file, and try again. Some more files are deleted but once again they are interrupted and told that another file couldn&#8217;t be deleted. They de-select that file and try again. This can go on for ages..</p>
<p>Here&#8217;s how to do it properly.</p>
<p>Go to a command prompt (Start -&gt; Run -&gt; cmd [enter])</p>
<p>At the command prompt type:</p>
<blockquote><p>cd %tmp%</p></blockquote>
<p>and press enter. This will change you into the current user&#8217;s temp directory.</p>
<p>Then type:</p>
<blockquote><p>rd /s .</p>
<p>(that&#8217;s rd space slash-S space dot)</p></blockquote>
<p>then press enter. Don&#8217;t forget the . at the end. This means &#8220;remove the current directory and all subdirectories, including all files.&#8221;</p>
<p>What will happen is that the contents of the temp directory and all subdirectories will be removed, but not the temp directory itself, because you are currently working in that directory (via the CD command) and therefore it can&#8217;t be deleted.</p>
<p>You&#8217;ll receive access denied messages for all in-use files, plus the temp directory itself. That&#8217;s fine. Those access denied messages would have been showstoppers if you were using Windows Explorer.</p>
<p>The above is clearing out the current user&#8217;s temp directory, which is located within that user&#8217;s profile directory (Documents and Settings\username). To clear out the system temp directory, which is located under the Windows directory, type:</p>
<blockquote><p>cd %windir%\temp</p></blockquote>
<p>and press enter. This will change you into the Windows temp directory.</p>
<p>Then just like before, type:</p>
<blockquote><p>rd /s .</p></blockquote>
<p>All done! You can type &#8220;exit&#8221; to close the command prompt.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.css-networks.com/2008/08/how-to-clear-the-temp-directory.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
