You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initiazing, inStrmenu.cs there is an instruction to get all shortcut files from various path : foreach (var shortcut in Directory.GetFiles(path, "*.lnk", SearchOption.AllDirectories))
The GetFiles throws an UnthaurizedAccessException when accessing my appdata folder.
Tried to change the appmanifest, run as admin, security settings of folder, but I found no way the fix this, any idea ?
The text was updated successfully, but these errors were encountered:
Thanks for replying @gerardbalaoro
It does as for administrator priviledge when started, but even though I have an Unauthorized access when calling Directory.GetFiles on ProgramData folder (not on AppData/roaming...).
Google that and found many people had this issue which seems related to some subdirectories beeing readonly or protected.
The workaround is to recursively scan each subdirectory in order to catch exception and skip the subdirectories which cause the issue.
I made a PR which a fix to this problem, as I finaly found what was going on.
Hi, thanks for this very good looking program.
When initiazing, inStrmenu.cs there is an instruction to get all shortcut files from various path :
foreach (var shortcut in Directory.GetFiles(path, "*.lnk", SearchOption.AllDirectories))
The GetFiles throws an UnthaurizedAccessException when accessing my appdata folder.
Tried to change the appmanifest, run as admin, security settings of folder, but I found no way the fix this, any idea ?
The text was updated successfully, but these errors were encountered: