NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Anthony_de_Vries
Posts: 189
0 Kudos

Can you edit file properties using Labview?

Except for the file attributes like 'read-only' and 'hidden', Windows 2000 & XP also have file properties like 'keywords', 'comments' and 'description'.

Is there any way that I can edit these properties in Labview?
Active Participant
BrandonS
Posts: 218
0 Kudos

Re: Can you edit file properties using Labview?

I looked around a bit and as far as I know there is not a way to do this, at least not a straightforward method to changing these properties in LabVIEW.
Active Participant
wiebe@CARYA
Posts: 572
0 Kudos

Re: Can you edit file properties using Labview?

Hi,

This technique is platform dependent. So if you want to do this for windows,
you'll have to use windows API's.

It is probably a Windows Shell thing. If you want to know about this, you
can ask about it in a windows programming newsgroup, e.g. VC++. We can help
you with the calling of API's in LabVIEW if you show us the C code...

And when you're done, I'm sure people in this newsgroup are interrested in
the VI's (and you'll get eternal fame)!

Regards,

Wiebe.


"blimpie boy" wrote in message
news:50650000000500000099C20000-1031838699000@exchange.ni.com...
> I looked around a bit and as far as I know there is not a way to do
> this, at least not a straightforward method to changing these
> properties in LabVIEW.
Trusted Enthusiast
ian_fung
Posts: 2,609
0 Kudos

Re: Can you edit file properties using Labview?

I have got this from somewhere (not very sure:smileytongue: can't recall)

However, jus see if it helps.

regards
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Member
RichElswick
Posts: 65
0 Kudos

Re: Can you edit file properties using Labview?

Looks like that Win32_API.llb file has calls to the Kernel32.dll file.  Of course, it has the File Attributes working in it, but no File Properties.  Unfortunately as that is what I was looking for, but oh well.  If I get it working, I will post something here.


Member
ChrisM 24
Posts: 16
0 Kudos

Re: Can you edit file properties using Labview?

Rich, are their any fruits from your file properties project?
Member
RichElswick
Posts: 65
0 Kudos

Re: Can you edit file properties using Labview?

nope, we never got that far and I am no longer on that project. :smileyhappy:
Trusted Enthusiast
rolfk
Posts: 4,785
0 Kudos

Re: Can you edit file properties using Labview?



RichElswick wrote:
nope, we never got that far and I am no longer on that project. :smileyhappy:


And it would be a bitch to implement. Basically those properties are implement using propertysheet handlers. That are shell extensions that can be installed in Windows and in the registry added to one or more file types. On loading the property dialog the shell (basically only an Explorer thing) sees that for that specific file type there are property sheet handlers registered and then loads them as an extra property sheet into the dialog.
There is no common API to retrieve and lets forget about changing the information those property sheet handlers deal with programmatically. And every property sheet handler retrieves the actual properties according to his own private information, such as image properties in JPG files but possible also extra information in the meta data of a file on advanced files systems such as NTFS (the security property sheet for instance).
So you would have to create a Windows dialog, load the according property sheet handlers into it and then have the user deal with that interactively. I doubt that this is what you want.

Rolf Kalbermatter

Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions
LabVIEW ArchitectLabVIEW ChampionLabVIEW Instructor
Member
ChrisM 24
Posts: 16
0 Kudos

Re: Can you edit file properties using Labview?

It does sound like the effort outweighs the gain. Thanks for putting me off.