Add "Remove Temp Files" to Right-Click Menu


Recommended Posts

Clear and erase your Temporary Files Easily

Free-up more space in your Hard drive! After Reading some questions on how to remove temporary files manually in Windows Vista and XP. Thankfully, Something pops-up in my head, If I will create a small program or script and be able to delete the temporary files in just one click, That would be Great!

Delete %Temp% files and folders (User Temp Folder), and Windows Temp Folder in Windows Vista

If WScript.Arguments.Count > 0 Then

Set objApp = CreateObject("WScript.Shell")

objApp.Run "cmd.exe /c " & Chr(34) & "rmdir /S /Q %temp%" & Chr(34)

objApp.Run "cmd.exe /c " & Chr(34) & "rmdir /S /Q %SystemRoot%\temp" & Chr(34)

Else

Set objLaunch = CreateObject("Shell.Application")

objLaunch.ShellExecute "wscript.exe", Chr(34) & WScript.ScriptFullName & Chr(34) & " RunAsAdmin", , "runas", 1

End If

Open Notepad > Just Copy and Paste the Code Above and Save the the file to Any filename that you want with extension ".vbs"

e.g. deltempfiles.vbs

Or If you're afraid to commit a mistake, just Download the file, here:

Adding the Script to Context Menu:

1. Download WinBubble

2. If you prefer to manually add the entry to Computer, Desktop, Start Menu, Folders Context Menu, Read here:

Adding your applications to Context Menu (Right-Click Menu)

3. Using WinBubble:

Go to Miscellaneous Tab > Click the Computer Button > Type Any Name. In this guide, let's try "Remove Temp Files" > Click the Browse Button and locate the VB Script File > Add wscript.exe before the path and enclosed the path in a quotation mark (").

Name: Remove Temp Files

Command: wscript.exe "C:\Tools\deltempfiles.vbs"

Click the Add Button. That's it!

%Temp% Folder Only

C:\Users\[userName]\AppData\Local\Temp

If you want to clear the User's temporary Folder only because UAC will not prompt to elevate the command:

Repeat the steps from 1 to 3 and use the script below:

Set objApp = CreateObject("WScript.Shell")

objApp.Run "cmd.exe /c " & Chr(34) & "rmdir /S /Q %temp%" & Chr(34)

Download: UserTempFileOnly.vbs

Also, you can use this to Clear your Personal Temp Folder when Windows Starts. Just drag the Shortcut to Start Menu > All Programs > Start Up Folder.

That's it!

Ok, you Want to learn How it was created?

My First Step:

How to Run VBScripts as Administrator in Windows Vista

Enjoy!!! Please post any suggestion for the tip. Thanks in Advance :)

------------------------------------------------------------------------------------------------------

Hello Guys, First I would like to thank everybody that help me in this version.

I will now declare, WinBubble 1.73

as the most popular version of WinBubble!!!

How? Please try to search using Google.

Most of the features in this version is NOT MINE. It is a Requested by the Users which Amazingly proven to be useful and popular.

Again Thank you very much Guys!!! Neowin.net!!!

Edited by LawrenceAlbert
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I disagree; they come off very "bitchy" and "whiny". Make a great product and combine that with a great price (free) and people will come over to your side. Or build it and they will come as they say. Constantly trying to get attention by complaining all the time, will turn people off to your product.
    • It use to be a nightmare, with LibreOffice supporting a newer draft ODF standard by default, and Microsoft Office supporting the older non-draft standard. Now that they both support the same version of ODF, they should be interoperable.
    • Brave Browser 1.91.171 by Razvan Serea Brave Browser is a lightning-fast, secure web browser that stands out from the competition with its focus on privacy, security, and speed. With features like HTTPS Everywhere and built-in tracker blocking, Brave keeps your online activities safe from prying eyes. Brave is one of the safest browsers on the market today. It blocks third-party data storage. It protects from browser fingerprinting. And it does all this by default. Speed - Brave is built on Chromium, the same technology that powers Google Chrome, and is optimized for speed, providing a fast and responsive browsing experience. Brave Browser also features Brave Rewards, a system that rewards users with Basic Attention Tokens (BAT) for viewing opt-in ads. This innovative system provides an alternative revenue model for content creators and a way to support the Brave community. SlimBrave Neo takes all the good things about Brave and makes them even better by keeping everything clean, light, and privacy-focused. It removes the extra clutter, turns off features you might not need, and cuts down on anything that could slow you down or collect unnecessary data. Because it relies on simple settings and policies instead of modifying the browser itself, you still get full Brave compatibility—just in a smoother, lighter, and more privacy-friendly package. Brave Browser 1.91.171 changelog: General Fixed Cardano not being disabled on upgrade to Brave Origin. Upgraded Chromium to 149.0.7827.103. Origin Removed “Survey Panelist” setting from brave://settings/privacy. Fixed P3A and usage ping under brave://settings/privacy being displayed on first launch on Linux. Upgraded Chromium to 149.0.7827.103. Download: Brave Browser 64-bit | 1.2 MB (Freeware) Download: Brave Browser 32-bit View: Brave Homepage | Offline Installers | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Hi. As the title suggests, I can't access the forum on my phone. I'm using Edge on Android and when I try to navigate to the forum I get a "we value your privacy" popup and none of the buttons are clickable. It effectively stonewalls me from reading any forum content.
    • Honestly you're not wrong about AdGuard. Neowin frequently has lifetime license discounts for them and that's how I got my cheap family license a few years ago to run it on all my devices.
  • Recent Achievements

    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
    • One Year In
      slackerzz earned a badge
      One Year In
    • One Year In
      highriskpaym earned a badge
      One Year In
    • One Month Later
      highriskpaym earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      519
    2. 2
      PsYcHoKiLLa
      190
    3. 3
      +Edouard
      156
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!