Thursday, January 3, 2019

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
Next

0 comments:

Post a Comment

Blog Archive

Translate

Popular Posts

Total Pageviews

Blog Archive