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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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)?
 
Upvote 0
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:
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,025
Members
449,060
Latest member
LinusJE

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
Back
Top