12-30-2011 05:04 AM
In my logic, I write the .txt file, after writting, I have to change the .txt file property "Attributes" as "Read Only" and "Hidden"
Plz give the solution and example.
Manohar Patil
12-30-2011 09:08 AM
It would help if you shared what OS you are working with.
12-30-2011 10:16 AM
There is no LabVIEW function to do that. You will need to use an operating system function to do it. The method varies, depending on the operating system. On Windows you can use Windows API calls or you can just use the command line commands, such as attrib via System Exec.
12-30-2011 10:13 PM
Thanx for replay
can you explain me through a example for OS Window XP.
12-30-2011 10:14 PM
Working on Window XP
01-01-2012 11:49 PM
Hello Dynamic
Thank you for posting your query.
As per my reasearch on the subject and as mentioned by Jeff and Smercurio, you need to make windows API calls to set the file access permissions programmatically.
A natural start would be use the "Call Llibrary Function Node" to make dll calls. The dll file that I believe would be relevant here is "advapi32.dll" located in system32 folder.
This dll would contain functions like "BuildExplicitAccessWithName()" which give explicit access for reading or writing for any windows object.
Though I could not find any relevant labview example code, the following links would be helpful to you.
http://support.microsoft.com/kb/295004/
http://support.microsoft.com/default.aspx?scid=kb;[LN];316440
Regards,
Ashutosh Singh
01-02-2012 09:01 AM - edited 01-02-2012 09:01 AM
A simple use of the attrib command would be like this:
01-04-2012 04:11 AM
Thank You Smercurio_fc
It working.............
thanx.