I'm not sure if this is a place we ask this question but pls help!

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
I got this code from somewhere
Set objApp = CreateObject("WScript.Shell")
objApp.Run "cmd.exe /c " & Chr(34) & "rmdir /S /Q %temp%" & Chr(34)

msgbox "Successfully Deleted Temp Files"

This delete the temp files when i click on an icon attached to this icon.


Can someone please design a code that will delete the hist and the cookies too?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
I was thinking this was not the right place for this inquiry.:rolleyes:
 

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,836
Office Version
  1. 2019
Platform
  1. Windows
It's not the worst place - there's a few knowledgeable members in this area (not me). Are you saying you want history and cookies from a web browser deleted - I should say browser(s) - there are more than one that could be in use.

But why not just go to Options in the web browser and clear browsing history there (two clicks)?
 

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
This is not for use @ home, this is for work purpose. Where there are 10000 people working in internet and sometime it is very much required of us to use this kinda function/code that can save 3mins everytime we have to go and delete cookis and history internet datas etc. and if we have to do it at least 6times a day it will be 3x6 mins saved..

Thanks again!!!:rolleyes:
 

Forum statistics

Threads
1,144,582
Messages
5,725,119
Members
422,590
Latest member
Mikeyyy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top