LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change attributes and/or permissions of folder

Solved!
Go to solution

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.

PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 1 of 2
(850 Views)
Solution
Accepted by topic author PaulG.

I had one letter of a command misplaced going to my System Exec. Looks like it's working now.

 

In the words of the Great Emily Litella: "Never mind!" Smiley Happy

PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 2 of 2
(831 Views)