locked
Unable to delete folder containing "desktop.ini" file RRS feed

  • Question

  • User-1123701243 posted

    Hello

    I use this code to delete folder 

    Directory.Delete(Server.MapPath("~") & "\" & "a", True)

    All files inside this folder are deleted but the folder itself can't be deleted because it contains a file called "desktop.ini"

    and I get this error :

    Access to the path 'desktop.ini' is denied.

    Friday, December 7, 2018 6:49 AM

All replies