Jump to content

Vista problem


Recommended Posts

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 by Andrew Peacock
Link to comment
Share on other sites

@UserProfileDir & "\AppData\Roaming\Microsoft\Windows\Cookies"

that is the correct address you are looking for (correct for windows VISTA/7)

Thanks DoubleMcLovin

Following 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 by Andrew Peacock
Link to comment
Share on other sites

@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"
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...