Greetings,
I used to use this function a lot and never had any problems with it. I even recently added it to my UDF but now upon retesting it I get this error during runtime (No compile errors): Error: Error parsing function call.
Here is the function. It is for deleting IE and Flash cookies from the system:
#Include <File.au3>
#include <Array.au3>
Func _ClearCookies()
ShellExecuteWait("RunDll32.exe","InetCpl.cpl,ClearMyTracksByProcess 2")
$cookieFolders = _FileListToArray(@AppDataDir&"\Macromedia\Flash Player\#SharedObjects","*",2)
If @error Then
Return "nonetorm"
Else
_ArrayDelete($cookieFolders,0)
For $i = 0 To UBound($cookieFolders) -1
$siteFolders = _FileListToArray(@AppDataDir&"\Macromedia\Flash Player\#SharedObjects\"&$cookieFolders[$i],"*",2)
If $i = 0 Then
_ArrayDelete($siteFolders,0)
EndIf
For $j = 0 To UBound($siteFolders) -1
DirRemove(@AppDataDir&"\Macromedia\Flash Player\#SharedObjects\"&$cookieFolders[$i]&"\"&$siteFolders[$j],1)
Next
Next
EndIf
Return "cookiesremoved"
EndFunc
Thank you to anyone who can help.