I have searched for this and the answers are not working. I have an app where I copy a folder on a CD onto the C drive. When the app is completed I want to delete the folder. I can't seem to do that with my code. I can manually go to the folder in explorer and de-select read only and it deletes fine. I've tried SetPermissions, Attrib in System Exec, none seem to work. 2011 on an XP system.
One observation of note: when I get permissions it reads 511. When I manually un-select read-only it still reads 511 but I can delete the folder in the code. I simply cannot de-select read-only in programatticaly and I need to. Thanks.
LabVIEW versions 5.0 - 2020
“All programmers are optimists” ― Frederick P. Brooks Jr.