01-24-2021 08:21 AM
How can I check whether a file specified(it maybe a csv, doc or txt file ) is read-only or not using LabVIEW?
Solved! Go to Solution.
01-24-2021 09:50 AM - edited 01-24-2021 09:56 AM
You can read file permissions using the 'Get File Permissions' function.
Read the detailed help to get more information because the permissions value is a set of Booleans which you need to parse correctly.
The snippet below should do what you want though
Edit: I have just realised that the read only flag is the wrong way around. The Read only flag flag will be false when the files is read only and true when it is not