Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Delete Flash cookies

$
0
0
Hi everyobdy

I am trying a quite simple thing: delete the flash cookies on my machine with AutoIt. But somehow i don't get it, the script is never able to delete anything.
What I tried is:

Delete the whole folder and recreate it:
[ autoit ]      
$userdir=@UserProfileDir ; C:\Users\USERNAME if StringTrimRight($userdir,1) <> "\" then $userdir &= "\" ; Add Backslash at the end if DirRemove($userdir & "AppData\Roaming\Macromedia\Flash Player\#SharedObjects") = 0 then MsgBox(0, "debug", "could not delete shared objects") ; Delete folder with Flash Cookies if DirCreate($userdir & "AppData\Roaming\Macromedia\Flash Player\#SharedObjects") = 0 then MsgBox(0, "debug", "could not create shared objects") ; Recreate folder if DirRemove($userdir & "AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys") = 0 then MsgBox(0, "debug", "could not delete sys") ; Delete folder with Flash Cookies if DirCreate($userdir & "AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys") = 0 then MsgBox(0, "debug", "could not create sys") ; Recreate folder
DirRemove() returns always '0'

Delete folder content with FileDelete() by only giving it the path to the folder (manual says, that it will delete all files in the folder then). But returns only '0'.

Delete folder content with FileFindFirstFile() and FileFindNextFile() and FileDelete(). Result same as above.

Does anyone see the mistake? Does the script simply not have the rights to delete these files?

Thanks in advance!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>