How do I remove a directory that might contains read-only file. The Directory.delete() work fine if it only contains deletable files. But when a read-only file existed inside that directory, the function throw an exception. I am just wondering that any other command will delete the whole directory recursively.
I know that dos command "Rd /s /q xxxxx" will recursively remove the whole thing, but I could not call that in VB.NET for some reason.
Thank you for your help,
HN
I know that dos command "Rd /s /q xxxxx" will recursively remove the whole thing, but I could not call that in VB.NET for some reason.
Thank you for your help,
HN