Andrew Peacock Posted March 7, 2010 Share Posted March 7, 2010 (edited) Hi, I've got some software that users are running on Vista and encountering problems. I develop on XP, so I'm kinda stuck. The relevant code is: #include <Array.au3> #include <File.au3> debug("BACKUPCOOKIES(): Backing up") $fileList = _FileListToArray(@UserProfileDir & "\Cookies", "*", 1) ; Files only ; Get rid of the "count" _ArrayDelete($fileList, 0) for $file in $fileList ; Backup... debug("BACKUPCOOKIES(): Backing up " & @UserProfileDir & "\Cookies" & '\' & $file) sleep(10) Next func debug($str) consolewrite($str & @crlf) EndFunc The users get the debug line "BACKUPCOOKIES(): Backing up", but nothing else. In one case, the program is chewing CPU resources, but I had forgotten the sleep() command. but even with that, she's getting nothing after the "BACKUPCOOKIES(): Backing up" appearing (it's been sent via OutputDebugStr to a debugger I've given her). Odd... Can anyone help? EDIT: I've just found out something else. For this customer, Autoit macros spit out: OS Architecture: X64 OS Type: WIN32_NT OS Version: WIN_VISTA OS Build: 6002 OS Service Pack: SP2 CPU: X64 So I guess she's 64-bit. Not sure about the other customer yet, though. Regards, Andy Edited March 7, 2010 by Andrew Peacock Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 7, 2010 Share Posted March 7, 2010 There is no such folder at Profile\Cookies on Vista. I also don't recall any such folder in XP though. Link to comment Share on other sites More sharing options...
DoubleMcLovin Posted March 8, 2010 Share Posted March 8, 2010 @UserProfileDir & "\AppData\Roaming\Microsoft\Windows\Cookies" that is the correct address you are looking for (correct for windows VISTA/7) Link to comment Share on other sites More sharing options...
Andrew Peacock Posted March 8, 2010 Author Share Posted March 8, 2010 (edited) @UserProfileDir & "\AppData\Roaming\Microsoft\Windows\Cookies"that is the correct address you are looking for (correct for windows VISTA/7)Thanks DoubleMcLovinFollowing up on your response, I've googled around a bit, and have also found a reference to "@UserProfileDir & "\AppData\Roaming\Microsoft\Windows\Cookies\Low" - but I can't find anywhere that explains the difference betwen the Low and parent folder. Can you shed any light?EDIT: Ah, a slightly different search term came up trumps:"With the IE 7 Protected Mode Turned On, the browser essentially runs as a low privilege process; as a result of which it can store / read / write cookies in the LOW version of the Cookies folder: C:\Users\username\AppData\Roaming\Microsoft\Windows\Cookies\Low But if you have turn UAC off or Disabled the Protected Mode in IE 7, in Windows Vista, they (like cache, temp & history) will mostly be stored in: C:\Users\username\AppData\Roaming\Microsoft\Windows\Cookies "Thanks for all your help guys,Regards,Andy Edited March 8, 2010 by Andrew Peacock Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 9, 2010 Share Posted March 9, 2010 @UserProfileDir & "\AppData\Roaming\Microsoft\Windows\Cookies" that is the correct address you are looking for (correct for windows VISTA/7) That could be better; @AppDataDir & "\Microsoft\Windows\Cookies" .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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