LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Dialog - Can't select read-only file in Vista

I'm wondering if anybody else had run into this:  It seems that the labview File Dialog will not allow me to select a file that is set read-only.  It produces a warning: "This file is set to read-only. Try again with a different file name." I am not trying to open the file, only get a file path.  File access should not matter.  Further, the problem seems to be unique to Windows Vista; I have no issues on my old XP machine.  I am using LabVIEW 8.5 & 8.6 and can reproduce in either.  Can somebody confirm this?  Thanks.

0 Kudos
Message 1 of 3
(3,103 Views)

Hi Codeman,

 

Thanks for the post!

 

I will try to confirm this tomorrow when my shift starts in the UK Office.

 

Could you provide a few more details to make this as easy as possible?

 

Kind Regards,  

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 3
(3,085 Views)

Hi Codeman,

 

I just tried this in 8.6, and here's what I discovered: If you set the selection mode to existing, you won't get the read-only warning.  If you select "new" or "new or existing", you'll get the read-only warning every time.  Thus, if it's okay in your application to select existing files, this should solve your problem.  Otherwise, I can confirm that it's not just you.  Smiley Wink

 

It's rather annoying to have that dialog pop up... there should be a way to disable it so that your application can handle the problem instead.  (i.e. by turning off the read-only flag on the file)

 

I hope this is of some use...

 

Regards,

 

Jim

0 Kudos
Message 3 of 3
(3,078 Views)