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

  Quote
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:

  Quote
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
  Quote
Nope, but i've sure used WinBubble !

Thanks Rebdomine!

  Quote
No, Thank You!

By the way Gary, Are you the guy that requested the Taking the ownership of Folders?

It rocks! Tons of people like it... Congratulations if your the guy! :D

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

    • No registered users viewing this page.
  • Posts

    • Here's my scenario: I have an intel i5-10600 based system using a Gigabyte Z590 Aorus master motherboard with an EVGA GeForce GTX 1070 (non-TI) graphics card. The PC has three monitors, 2 x Dell SE2717H/HX and an older Samsung monitor. The monitor configuration is Dell SE2717H - Samsung, Dell SE2717H. (1) The left Dell monitor is connected to the 1070 by via DP out on the 1070 (DP to DVI adapter connecting DVI to HDMI cable) going to HDMI input on the monitor. (2) The center Samsung is connected to the 1070 via HDMI output on the 1070 to HDMI input on the monitor itself. However I have a HDMI duplicator connecting the Samsung monitor to a NanoKVM box. Will explain this more in a moment. (3) The right Dell monitor is connected via a DP to HDMI cable. It's connected to DP out on the 1070 and HDMI input on the monitor. When the PC is powered on, the right (3) monitor is the default monitor showing the BIOS and POST screens before booting into Windows where the center Samsung becomes the primary monitor. I have the Samsung set as the primary in Windows, but that obviously doesn't affect the BIOS/POST. I had swapped the right Dell and center Samsung thinking the monitors were dictating the settings, but when I reconnected them, the Samsung was on the right, it still remained the priority monitor during BIOS/POST time. So I reverted those changes. I followed the EVGA card port priority per this official EVGA page ( https://www.evga.com/support/faq/FAQdetails.aspx?faqid=59560 ) which indicates the following priority of ports: - DVI - HDMI - DisplayPort (middle) - DisplayPort (far right) - DisplayPort (far left) With the DVI port not in use, I verified the center Samsung monitor was on the HDMI port on the 1070. The left Dell monitor was connected to DP (middle) and the right Dell monitor was connected to DP (far right). However during BOOT/POST, the right Dell remained the priority. I created all sorts of combinations of moving the center Samsung to the middle DP port (using DP to HDMI adapter), for the higher priority # and moving the left and right Dell monitors to far right and far left DP ports. However the right Dell monitor remained the BOOT/BIOS priority default. Why does this even matter?? The reason I'm trying to solve this puzzle is because I recently purchased a NanoKVM PCIe card that gives full BMC access to the BIOS and visuals via HTML5 web interface to pre-Windows boot time. In the event I need to troubleshoot when I'm away from home. The NanoKVM has an HDMI input port so it can grab the screen and share it via the HTML5 built in portal on it's remote IP access. Because the NanoKVM isn't multi-monitor aware, it's designed to only display the monitor that it's plugged into in the video card so I can see the  boot /BIOS screens and the Windows default monitor. Because there is no HDMI passthrough on the NanoKVM, I purchased a HDMI duplicator/splitter (NOT an extender).   This HDMI extender connects to the HDMI output on the 1070. My center Samsung monitor is connected to splitter output port #1 with a standard HDMI cable and the NanoKVM is connected to splitter output port #2 with a standard HDMI cable as well. When I disconnect both Dell monitors and leave this setup connected to HDMI, it works flawlessly. When I connect the left Dell monitor to the above far left DP port on the 1070, the setup still works great as the center Samsung still remains the default/priority. But when I connect the right Dell monitor to the far right DP on the 1070, the right Dell becomes the default/priority monitor during BOOT/POST time. This results in the NanoKVM not having access to/displaying the contents of the right Dell when it's priority during BOOT time, but once the PC boots into Windows and it's the default monitor/port, the KVM displays that just fine then. However, this defeats the purpose of needing the KVM which is to provide access to the BIOS and boot menu settings in the event of an emergency while I'm away from home. Any idea on what I'm doing wrong? Do I need to replace the center Samsung?? Different monitor / adapter cables??? Do I need to upgrade the video card? I have a 980Ti, but per the EVGA docs, the port priority is the same for it as the 1070. Thoughts?? Suggestions???
    • I've had the Ryzen since it first went to market. I've had Windows 11 since beta testing it in the early days... Ryzen worked just fine, Windows didn't... so, not sure what this "four years" it is you're referencing since you're not specific as to who fixed what.
    • A toggle option for automatic call recording will be welcomed. I see no harm in providing it as the call recording prompt is played by the iphone.
  • Recent Achievements

    • Mentor
      Karlston went up a rank
      Mentor
    • One Month Later
      EdwardFranciscoVilla earned a badge
      One Month Later
    • One Month Later
      MoyaM earned a badge
      One Month Later
    • One Month Later
      qology earned a badge
      One Month Later
    • One Year In
      Frinco90 earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      474
    2. 2
      snowy owl
      256
    3. 3
      +FloatingFatMan
      254
    4. 4
      ATLien_0
      210
    5. 5
      Xenon
      149
  • Tell a friend

    Love Neowin? Tell a friend!