From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Development Best Practices Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Folder delete protection

hi friends,

Is it possible to make protection to folder from Delete operation by using Labview?

i need urs help?

0 Kudos
Message 1 of 4
(4,964 Views)

I am not well sure that you can get the 'Folder Reference' for modifying the permission.

The simple workaround is

1. Write some dummy file into the Folder,

2. Get the access of the file (dummy file) / Deny Access of the file,

3. When you finishing the operation,

3a. Close the dummy file,

3b. Delete the dummy file.

Note:-

Here you have to run your code prallel to the delete operation.

Hope this can help you.

Regards,

Yogesh Redemptor

Regards,
Yogesh Redemptor
0 Kudos
Message 2 of 4
(3,023 Views)

Thanks for replay me...your idea is good..but i am thinking ..it is only protect to delete the folder...suppose if user delete  each file in these  folder individulay ,this idea is not worked....

0 Kudos
Message 3 of 4
(3,023 Views)

Delete Folder Access Denied.png

Regards,
Yogesh Redemptor
0 Kudos
Message 4 of 4
(3,023 Views)