Monday, 23 September 2013

How to list all files in cookies in vbscript?

Cookie is a file stored by the web server on web client machine.
If you want to find out the cookies in your machine you can use below program.

Const COOKIES = &H21&

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(COOKIES)
Set objFolderItem = objFolder.Self

Msgbox "The path of cookies folder is ->  " &  objFolderItem.Path

Set colItems = objFolder.Items
For Each cookie in colItems
   Msgbox  cookie.Name

No comments:

Post a Comment

Total Pageviews