Jump to content

Path of cookies and IE history


BALA
 Share

Recommended Posts

Since I don't know where the person who will use my program has his cookies of IE history folder stored, I can't have a definite path. Is there some way for an AutoIt program to check where the IE history and cookies are stored?

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

Since I don't know where the person who will use my program has his cookies of IE history folder stored, I can't have a definite path. Is there some way for an AutoIt program to check where the IE history and cookies are stored?

Read the registry values:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cookie

This value contains the path of cookies folder

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\History

This value contains the path of history folder

Use appropriate AutoIT function like

$sCookiePath=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Cookie")
$sHistoryPath=RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","History")

Hope this helps you

Vic

Link to comment
Share on other sites

Thanks :)

Just an add-on, if I delete these, will it delete the folder or a needed registry file?

or will this give me the path of the folders?

EDIT: Path, nevermind :D

Edited by BALA
[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

There seems to be something wrong with that script. When I create a MsgBox to show me the path, it comes up empty:

$sCookiePath = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Cookie")

MsgBox ( 0, "","" & $sCookiePath)

Was it something wrong I did?

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

Hi,

MsgBox (64, "Cookie & History Path","Cookie : " & RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Cookies") &  @CRLF & _
"History : " & RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","History"))

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

There seems to be something wrong with that script. When I create a MsgBox to show me the path, it comes up empty:

$sCookiePath = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Cookie")

MsgBox ( 0, "","" & $sCookiePath)

Was it something wrong I did?

Sorry I miss an s for Cookies

Thanks th.meger

For your previous question:

if you delete registry values, you don't delete the path they define

next time you restart IE, the deleted values are recreated from same values defined under

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Vic

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...