LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vista file access

Are thare any vista programmers out there who struggle with file access and permissions with labview.  I am trying to understand how labview can write to file from multiple accounts.  how an labview create a file (text or datalog) in one account and allow other accounts to have full r/w privledges as well. 
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 1 of 8
(4,342 Views)

Hi Paul,

I have not ran into any issues with Vista concerning file access and permissions with LabVIEW, but I thought that you might find the attached article helpful.  Thanks!

0 Kudos
Message 2 of 8
(4,313 Views)
Are you sure your users have permissions to the file in Vista?  If a user is saving files into their My Documents folder, that  folder is locked out to other users.  I would check the folder permissions to make sure Vista is allowing access to the users you want to access it.
0 Kudos
Message 3 of 8
(4,310 Views)

The issue I am having is that my application stores configuration and shared files in C:\appData\ApplicationName (ApplicationName is generic for this example I did not action name my application this).  When the common configuration files do not exist the the application creates them.  The problem is thaAt under vista it seems that this file is created as write for the user that creates the file, when the next user signs in to vista and uses this application the USERS privlages are set to read but not write so when the other users attempt to modify this set of configuration files, the io vis throw an error cluster.  I need to write and create files in C:\appData\ApplicationName directory with read write privledges for all users and not have to diable any UAC in vista.  I will look at the reference you sent.  It seems like the file io vis have very limited control over some of the new file security features in vista.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 4 of 8
(4,292 Views)

During installation of the program, you would need to set the access properties on that directory to edit for all users...     Don't know how you would do that in Labview though...   It doesn't seem to have any vi's for that purpose.

Other option would be to write the appdata in a folder that's writeable to everyone by default.     Maybe [CommonFilesFolder] in the application builder?

0 Kudos
Message 5 of 8
(4,276 Views)
I myself am having big problems with VISTA Folder access.  I am trying to write temporary files to a directory that will not allow me to remove the 'Read-Only' property from the folder I want to write to. (And this is from the Administrator Account). When I uncheck the 'Read-Only' property, it goes thru the gyrations of doing this but then checking the folder properties again, we see that the box is still in fact checked.  So we are doing research to try to figure out the real way to get the permissions off of the folder.  There are some links on the web to try to address this but no luck so far.

Anyone - feel free to chime in here.  To me, this is outrageous.

Sincerely,

Don
0 Kudos
Message 6 of 8
(4,090 Views)
Do you have UAC enabled?  Then try this:  Disable UAC... remove the security settings, (now it will probably work) and enable UAC again.   That has helped me in few situations that sounded very much like your problem.
0 Kudos
Message 7 of 8
(4,066 Views)

We ended up turning on Admistrator Account (I guess the true administrator account) in VISTA which will allow file/folder write access:

1. Go to Start, Programs, Accessories

2. Right-click on Command Prompt and click 'Run as Administrator'

3. Type in the following:

Net user administrator /active:yes

(there must be a space between administrator and /)

4. Reboot

 

Should now have the access - at least it worked for us.

 

Don

 

 

 

0 Kudos
Message 8 of 8
(4,056 Views)