LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

File access rights

Hello,
 
Is there a way in CVI to change the file access rights, for example change an administrator file to a user file ?
 
I have made a program that works fine when logged in windows as administrator but shows some problems when logged in as a user. The problem comes from the fact that the program overwrites files (for example default startup settings) made in administrator mode.
 
Are there some guide lines how to program properly for Windows XP with CVI in order to avoid this kind of issues ?
 
Thank you for your help
Bertrand
0 Kudos
Message 1 of 4
(3,258 Views)

Bertrand,

Can you be more specific about "some problems when logged in as a user".
It may not be possible to edit the file if the user account is a restricted one and the file is in Windows drive (let's say C: ).
If you have a D drive for example, change your code to save the file in a folder in D.

Hope this helps.

Message Edited by ebalci on 04-16-2007 04:33 PM

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 4
(3,248 Views)

We had exactly that problem a while back on an XP Pro installation. We solved it by editing the file properties (Windows File Security Persissions) before creating the distribution kit, to allow all users to edit the file. So after installation the running CVI program inherits the same priveleges as the user and the file can be altered, even though it was created (installed) by an administrator.

JR

0 Kudos
Message 3 of 4
(3,244 Views)
If Vista is in your future, it check out this NI page for some relevant info on read/write access issues.
0 Kudos
Message 4 of 4
(3,232 Views)