BALA Posted January 9, 2007 Share Posted January 9, 2007 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 More sharing options...
mc1226 Posted January 9, 2007 Share Posted January 9, 2007 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 More sharing options...
BALA Posted January 9, 2007 Author Share Posted January 9, 2007 (edited) 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 Edited January 9, 2007 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 More sharing options...
BALA Posted January 9, 2007 Author Share Posted January 9, 2007 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 More sharing options...
Xenobiologist Posted January 9, 2007 Share Posted January 9, 2007 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 More sharing options...
BALA Posted January 9, 2007 Author Share Posted January 9, 2007 Thanks [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 More sharing options...
mc1226 Posted January 9, 2007 Share Posted January 9, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now