02-24-2012, 06:49 AM
02-24-2012, 10:35 AM
Hi,
Try the below code.
Regards,
Ankesh
Try the below code.
Code:
Function ClearCookies()
On Error Resume Next
Const TEMPORARY_INTERNET_FILES = "&H20&"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(TEMPORARY_INTERNET_FILES)
objFSO.DeleteFile(objFolder.Self.Path & "\*.*")
sPath = objFSO.GetFolder(objFolder.Self.path) & "\Content.IE5\"
Set objFolders = objFSO.GetFolder(sPath)
For Each objFName In objFolders.SubFolders
WScript.Echo sPath & objFName.Name
objFSO.DeleteFolder(sPath & objFName.Name)
Next
If Err.Number <> 0 Then
err.Clear
ClearCookies = 0
Else
ClearCookies = 1
End If
End Function
Regards,
Ankesh
02-24-2012, 10:41 AM
02-24-2012, 11:58 AM
webutil.deletecookies
02-24-2012, 07:33 PM
Thank you Ankesh
Thank you Ravi
Thank you, Inborntester, thanks for awareing me to search for my question insted posting a thread, from the next time onwards, before i post a question, i will search in the site...
Thank you every one
Thank you Ravi
Thank you, Inborntester, thanks for awareing me to search for my question insted posting a thread, from the next time onwards, before i post a question, i will search in the site...
Thank you every one
03-06-2012, 12:36 AM
Code:
webutil.deletecookies
Set WshShell = CreateObject("WScript.Shell")
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351"