<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Script To Delete Windows Temporary Files</title> <atom:link href="http://www.pcmech.com/article/script-to-delete-windows-temporary-files/feed/" rel="self" type="application/rss+xml" /><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/</link> <description>Helping Normal People Get Their Geek On</description> <lastBuildDate>Wed, 15 Feb 2012 10:29:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: bdtech</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-46340</link> <dc:creator>bdtech</dc:creator> <pubDate>Wed, 04 Aug 2010 21:26:03 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-46340</guid> <description>How do I only delete certain temp files, for example: windowstemp files and Internet temp files.  I ran the bat file, it deleted lot of windows .dll files and now my computer won&#039;t start up.</description> <content:encoded><![CDATA[<p>How do I only delete certain temp files, for example: windowstemp files and Internet temp files.  I ran the bat file, it deleted lot of windows .dll files and now my computer won&#39;t start up.</p> ]]></content:encoded> </item> <item><title>By: Joske</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-45014</link> <dc:creator>Joske</dc:creator> <pubDate>Fri, 04 Jun 2010 07:07:51 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-45014</guid> <description>Then u put the script in all users startup folder for every pc of your networksuc6</description> <content:encoded><![CDATA[<p>Then u put the script in all users startup folder for every pc of your network</p><p>suc6</p> ]]></content:encoded> </item> <item><title>By: sp33dyt</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-38004</link> <dc:creator>sp33dyt</dc:creator> <pubDate>Sun, 24 Jan 2010 09:46:48 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-38004</guid> <description>This delete the temp file for the current user
what about if there are more than an user?</description> <content:encoded><![CDATA[<p>This delete the temp file for the current user<br
/> what about if there are more than an user?</p> ]]></content:encoded> </item> <item><title>By: Chad</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-19619</link> <dc:creator>Chad</dc:creator> <pubDate>Tue, 20 Jan 2009 22:58:42 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-19619</guid> <description>OPTION EXPLICIT
&#039; purpose: delete *.tmp files in documents and settings
&#039;          where *.tmp files located at marix
dim strTempFolder								&#039; path to user temp folder
dim strProfileRoot							&#039; documents and settings root folder
&#039; **********************************************************************
private sub DeleteTMPFiles()
&#039; delete .tmp files in user&#039;s temp dir
dim fso
dim fsoFolder
dim fsoFiles
dim strFile
dim objShell					&#039; wshell
dim objFiles
dim strEnviron				&#039; environment var
dim strExt					&#039; file extension
dim NumFiles					&#039; file count
Dim theSubFolders			&#039; subfolders in directory
Dim fld						&#039; folder in collection
Dim FolderNames
dim test
dim logFiles
dim htmFiles
dim htmlFiles
dim emfFiles
dim hlpFiles
dim sqmFiles
dim txtFiles
dim bmpFiles
dim pngFiles
dim gifFiles
NumFiles = 0
FolderNames = &quot;&quot;
&#039; set shell
SET objShell = CreateObject(&quot;Wscript.Shell&quot;)
&#039; get environment var
strEnviron = objShell.ExpandEnvironmentStrings(&quot;%temp%&quot;)
&#039;msgbox strEnviron, vbokonly, &quot;Environ&quot;test = strEnviron &amp; &quot;\*.tmp&quot;
logFiles = strEnviron &amp; &quot;\*.log&quot;
htmFiles = strEnviron &amp; &quot;\*.htm&quot;
htmlFiles = strEnviron &amp; &quot;\*.html&quot;
emfFiles = strEnviron &amp; &quot;\*.emf&quot;
hlpFiles = strEnviron &amp; &quot;\*.hlp&quot;
sqmFiles = strEnviron &amp; &quot;\*.sqm&quot;
txtFiles = strEnviron &amp; &quot;\*.txt&quot;
bmpFiles = strEnviron &amp; &quot;\*.bmp&quot;
pngFiles = strEnviron &amp; &quot;\*.png&quot;
gifFiles = strEnviron &amp; &quot;\*.gif&quot;
&#039;msgbox test, vbokonly, &quot;Environ + *.tmp&quot;&#039; open cmd to run DIR
&#039;objShell.Run &quot;cmd /K Dir *.TMP&quot;
&#039;msgbox &quot;cd &quot; &amp; test
&#039; close cmd window on completion - C
objshell.run &quot;cmd /C del &quot; &amp; test
objshell.run &quot;cmd /C del &quot; &amp; logFiles
objshell.run &quot;cmd /C del &quot; &amp; htmFiles
objshell.run &quot;cmd /C del &quot; &amp; htmlFiles
objshell.run &quot;cmd /C del &quot; &amp; emfFiles
objshell.run &quot;cmd /C del &quot; &amp; hlpFiles
objshell.run &quot;cmd /C del &quot; &amp; sqmFiles
objshell.run &quot;cmd /C del &quot; &amp; txtFiles
objshell.run &quot;cmd /c del &quot; &amp; bmpFiles
objshell.run &quot;cmd /c del &quot; &amp; pngFiles
objshell.run &quot;cmd /c del &quot; &amp; gifFiles&#039; keep cmd window open - K
&#039;objShell.Run &quot;cmd /K cd &quot; &amp; strEnviron
set objShell = nothingend sub
&#039; **********************************************************************&#039; Main code
&#039; **********************************************************************
DeleteTMPFiles()&#039;msgbox &quot;Deleted *.TMP files in user Temp directory&quot;, 48, &quot;Done&quot;</description> <content:encoded><![CDATA[<p>OPTION EXPLICIT</p><p> &#8216; purpose: delete *.tmp files in documents and settings<br
/> &#8216;          where *.tmp files located at marix</p><p> dim strTempFolder								&#8216; path to user temp folder<br
/> dim strProfileRoot							&#8216; documents and settings root folder</p><p> &#8216; **********************************************************************</p><p> private sub DeleteTMPFiles()<br
/> &#8216; delete .tmp files in user&#8217;s temp dir</p><p> dim fso<br
/> dim fsoFolder<br
/> dim fsoFiles<br
/> dim strFile<br
/> dim objShell					&#8216; wshell<br
/> dim objFiles<br
/> dim strEnviron				&#8216; environment var<br
/> dim strExt					&#8216; file extension<br
/> dim NumFiles					&#8216; file count<br
/> Dim theSubFolders			&#8216; subfolders in directory<br
/> Dim fld						&#8216; folder in collection<br
/> Dim FolderNames<br
/> dim test<br
/> dim logFiles<br
/> dim htmFiles<br
/> dim htmlFiles<br
/> dim emfFiles<br
/> dim hlpFiles<br
/> dim sqmFiles<br
/> dim txtFiles<br
/> dim bmpFiles<br
/> dim pngFiles<br
/> dim gifFiles</p><p> NumFiles = 0</p><p> FolderNames = &#8220;&#8221;</p><p> &#8216; set shell<br
/> SET objShell = CreateObject(&#8220;Wscript.Shell&#8221;)</p><p> &#8216; get environment var<br
/> strEnviron = objShell.ExpandEnvironmentStrings(&#8220;%temp%&#8221;)<br
/> &#8216;msgbox strEnviron, vbokonly, &#8220;Environ&#8221;</p><p> test = strEnviron &amp; &#8220;\*.tmp&#8221;<br
/> logFiles = strEnviron &amp; &#8220;\*.log&#8221;<br
/> htmFiles = strEnviron &amp; &#8220;\*.htm&#8221;<br
/> htmlFiles = strEnviron &amp; &#8220;\*.html&#8221;<br
/> emfFiles = strEnviron &amp; &#8220;\*.emf&#8221;<br
/> hlpFiles = strEnviron &amp; &#8220;\*.hlp&#8221;<br
/> sqmFiles = strEnviron &amp; &#8220;\*.sqm&#8221;<br
/> txtFiles = strEnviron &amp; &#8220;\*.txt&#8221;<br
/> bmpFiles = strEnviron &amp; &#8220;\*.bmp&#8221;<br
/> pngFiles = strEnviron &amp; &#8220;\*.png&#8221;<br
/> gifFiles = strEnviron &amp; &#8220;\*.gif&#8221;</p><p> &#8216;msgbox test, vbokonly, &#8220;Environ + *.tmp&#8221;</p><p> &#8216; open cmd to run DIR<br
/> &#8216;objShell.Run &#8220;cmd /K Dir *.TMP&#8221;</p><p> &#8216;msgbox &#8220;cd &#8221; &amp; test</p><p> &#8216; close cmd window on completion &#8211; C<br
/> objshell.run &#8220;cmd /C del &#8221; &amp; test<br
/> objshell.run &#8220;cmd /C del &#8221; &amp; logFiles<br
/> objshell.run &#8220;cmd /C del &#8221; &amp; htmFiles<br
/> objshell.run &#8220;cmd /C del &#8221; &amp; htmlFiles<br
/> objshell.run &#8220;cmd /C del &#8221; &amp; emfFiles<br
/> objshell.run &#8220;cmd /C del &#8221; &amp; hlpFiles<br
/> objshell.run &#8220;cmd /C del &#8221; &amp; sqmFiles<br
/> objshell.run &#8220;cmd /C del &#8221; &amp; txtFiles<br
/> objshell.run &#8220;cmd /c del &#8221; &amp; bmpFiles<br
/> objshell.run &#8220;cmd /c del &#8221; &amp; pngFiles<br
/> objshell.run &#8220;cmd /c del &#8221; &amp; gifFiles</p><p> &#8216; keep cmd window open &#8211; K<br
/> &#8216;objShell.Run &#8220;cmd /K cd &#8221; &amp; strEnviron</p><p> set objShell = nothing</p><p> end sub</p><p> &#8216; **********************************************************************</p><p> &#8216; Main code<br
/> &#8216; **********************************************************************</p><p> DeleteTMPFiles()</p><p> &#8216;msgbox &#8220;Deleted *.TMP files in user Temp directory&#8221;, 48, &#8220;Done&#8221;</p> ]]></content:encoded> </item> <item><title>By: printman</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-8541</link> <dc:creator>printman</dc:creator> <pubDate>Sun, 09 Mar 2008 03:08:54 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-8541</guid> <description>wow.  i cant believe how much i do NOT know, which is a relief, at the least i know i dont know that much..im A+ certfied..  read two different books thoroughly before i went for the exam.. currently i work as a net admin.. those books never taught me how to write scripts like that.. how do i learn that?thanks.</description> <content:encoded><![CDATA[<p>wow.  i cant believe how much i do NOT know, which is a relief, at the least i know i dont know that much..</p><p>im A+ certfied..  read two different books thoroughly before i went for the exam.. currently i work as a net admin.. those books never taught me how to write scripts like that.. how do i learn that?</p><p>thanks.</p> ]]></content:encoded> </item> <item><title>By: Justin Hierholzer</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-8085</link> <dc:creator>Justin Hierholzer</dc:creator> <pubDate>Tue, 19 Feb 2008 13:59:04 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-8085</guid> <description>Good luck using CCleaner when it changes your
Windows System files, and you are left with
&quot;Windows cannot find the file HAL.DLL&quot;!!
We had this nasty &quot;portable&quot; version cause all
kinds of issues for our managed clients.Like I said - Good luck reinstalling WindowsPS:  If your lucky and know that ccleaner has
messed up your system, DO NOT REBOOT - run the
System Restore utility to go back!</description> <content:encoded><![CDATA[<p>Good luck using CCleaner when it changes your<br
/> Windows System files, and you are left with<br
/> &#8220;Windows cannot find the file HAL.DLL&#8221;!!<br
/> We had this nasty &#8220;portable&#8221; version cause all<br
/> kinds of issues for our managed clients.</p><p>Like I said &#8211; Good luck reinstalling Windows</p><p>PS:  If your lucky and know that ccleaner has<br
/> messed up your system, DO NOT REBOOT &#8211; run the<br
/> System Restore utility to go back!</p> ]]></content:encoded> </item> <item><title>By: Shanx</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-8071</link> <dc:creator>Shanx</dc:creator> <pubDate>Tue, 19 Feb 2008 05:48:30 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-8071</guid> <description>You&#039;re right. We&#039;re all comfortable with different things.Piecemeal in the sense that you have to write an external script to use functions that should have a much simpler interface.Cleaning the registry is a huge benefit in terms of Windows performance. Microsoft itself recommends that you use their free RegClean utility (part of Powertoys). This is particularly relevant for those of us who install and uninstall utilities all the time. Other than the most basic grandma users of Windows, I suspect this includes pretty much everyone.CCleaner cleans a lot of things:
http://www.ccleaner.com/I use four browsers for testing and CC cleans up after all of them. Only the things I request though -- not the entire cache. For example, I don&#039;t want to clean my authenticated sessions in Firefox which is my main browser and I can set CC up to leave them alone.Anyway, my point was not to belittle your suggestion. It&#039;s always nice to learn nifty little tricks. But there&#039;s a difference between novelty of suggestion and actual practice. For the latter, I prefer CCleaner to do its job, which it does well.PS. Not associated with CC in any way.</description> <content:encoded><![CDATA[<p>You&#8217;re right. We&#8217;re all comfortable with different things.</p><p>Piecemeal in the sense that you have to write an external script to use functions that should have a much simpler interface.</p><p>Cleaning the registry is a huge benefit in terms of Windows performance. Microsoft itself recommends that you use their free RegClean utility (part of Powertoys). This is particularly relevant for those of us who install and uninstall utilities all the time. Other than the most basic grandma users of Windows, I suspect this includes pretty much everyone.</p><p>CCleaner cleans a lot of things:<br
/> <a
href="http://www.ccleaner.com/" rel="nofollow">http://www.ccleaner.com/</a></p><p>I use four browsers for testing and CC cleans up after all of them. Only the things I request though &#8212; not the entire cache. For example, I don&#8217;t want to clean my authenticated sessions in Firefox which is my main browser and I can set CC up to leave them alone.</p><p>Anyway, my point was not to belittle your suggestion. It&#8217;s always nice to learn nifty little tricks. But there&#8217;s a difference between novelty of suggestion and actual practice. For the latter, I prefer CCleaner to do its job, which it does well.</p><p>PS. Not associated with CC in any way.</p> ]]></content:encoded> </item> <item><title>By: Jason Faulkner</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-8058</link> <dc:creator>Jason Faulkner</dc:creator> <pubDate>Mon, 18 Feb 2008 16:38:03 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-8058</guid> <description>Robert, thanks for pointing that out. When I checked what my script is, there were no quotes so I&#039;m not sure why I added them... habit I guess.Shanx:
I am not a big fan of CCleaner because:
1) I can clean temp files myself with the above script.
2) My browser manages the size of it&#039;s own cache.
3) I NEVER mess with the registry when I don&#039;t have to. &quot;Cleaning&quot;/&quot;Optimizing&quot; your registry, in my opinion is an extremely high risk with relatively low reward action.
4) I can&#039;t really think of anything else I would need to really clean up. Something like removing log files or Windows Update temp files, I don&#039;t do anyway since they don&#039;t take up much space.Additionally, I don&#039;t see how using simple native OS functions is a &quot;piecemeal&quot; hack.
I respect your opinion... to each their own.</description> <content:encoded><![CDATA[<p>Robert, thanks for pointing that out. When I checked what my script is, there were no quotes so I&#8217;m not sure why I added them&#8230; habit I guess.</p><p>Shanx:<br
/> I am not a big fan of CCleaner because:<br
/> 1) I can clean temp files myself with the above script.<br
/> 2) My browser manages the size of it&#8217;s own cache.<br
/> 3) I NEVER mess with the registry when I don&#8217;t have to. &#8220;Cleaning&#8221;/&#8221;Optimizing&#8221; your registry, in my opinion is an extremely high risk with relatively low reward action.<br
/> 4) I can&#8217;t really think of anything else I would need to really clean up. Something like removing log files or Windows Update temp files, I don&#8217;t do anyway since they don&#8217;t take up much space.</p><p>Additionally, I don&#8217;t see how using simple native OS functions is a &#8220;piecemeal&#8221; hack.<br
/> I respect your opinion&#8230; to each their own.</p> ]]></content:encoded> </item> <item><title>By: Robert</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-8034</link> <dc:creator>Robert</dc:creator> <pubDate>Sun, 17 Feb 2008 17:55:05 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-8034</guid> <description>About Clean temp , I like it the script but, without the quote...otherwise it will not work with the quote.</description> <content:encoded><![CDATA[<p>About Clean temp , I like it the script but, without the quote&#8230;otherwise it will not work with the quote.</p> ]]></content:encoded> </item> <item><title>By: Shanx</title><link>http://www.pcmech.com/article/script-to-delete-windows-temporary-files/comment-page-1/#comment-8029</link> <dc:creator>Shanx</dc:creator> <pubDate>Sun, 17 Feb 2008 07:36:52 +0000</pubDate> <guid
isPermaLink="false">http://www.pcmech.com/article/script-to-delete-windows-temporary-files/#comment-8029</guid> <description>Much nicer than these piecemeal hacks is to download CCleaner (free) and run it. It cleans up a whole lot of stuff beyond the temp folder, optimizes your registry, allows you to cleanly uninstall gunk software, and so forth.</description> <content:encoded><![CDATA[<p>Much nicer than these piecemeal hacks is to download CCleaner (free) and run it. It cleans up a whole lot of stuff beyond the temp folder, optimizes your registry, allows you to cleanly uninstall gunk software, and so forth.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 35/53 queries in 0.022 seconds using apc
Content Delivery Network via pcmech.pcmediainc.netdna-cdn.com

Served from: www.pcmech.com @ 2012-02-15 10:58:22 -->
