cancel
Showing results for 
Search instead for 
Did you mean: 

File Properties

B3guy
Member

File Properties

How do I get/set the properties of a file (such as Author, Artist, etc)?
19 REPLIES 19
Knight of NI

Re: File Properties

Message contains a hyperlink
You've already asked this question here.
B3guy
Member

Re: File Properties

I am look for a solution in a different way.  I am running version 8.2 of LabVIEW, and I got an error when I tried to run the method that you mentioned.  The error was "Automation Open: Object specified is not creatable".

 

I want to know if there is another way to manipulate the properties without using a specific ActiveX method.

Knight of NI

Re: File Properties

In the future please stick to the original thread. As it is, your new message provides little information, and the first question someone would ask is "what are those properties", since it's not clear you're even referring to music files. Plus, you will prevent simply getting the same answers.

 

Did you create a Windows Media Player object? If you upload your code somebody can take a look at it.

 

Is there a non-ActiveX solution? Of course. Search the net and you'll find dozens of programs that can change that information. You may be able to find on that can be command-line driven so you can call it from LabVIEW using System Exec. I'll leave the search as an exercise for you. Smiley Wink

 

 

jawier130
Member

Re: File Properties

Message contains a hyperlink

Hi, i am trying to use wmp.dll but labview do not found any functions in the library.

 

http://msdn.microsoft.com/en-us/library/dd563847%28v=vs.85%29.aspx

 

jawier130
Member

Re: File Properties

Message contains an attachment

I am trying it with "Windows Media Player SDK" who contains "wmp.h" header.
But the assistant "Import Shared Library" do not show me any functions.

Yamaeda
Proven Zealot

Re: File Properties

I belive wmp.dll is a .net assembly, so you'll need dont need to import anything, just create the correct .net object and use invoke/property nodes.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Highlighted
jawier130
Member

Re: File Properties

Message contains an attachment

I don´t understand you.

 

I can´t create a .Net constructor

 

I can´t create the .Net control

 

 

Yamaeda
Proven Zealot

Re: File Properties

Message contains an image

NETSound.png

Try this.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
jawier130
Member

Re: File Properties

Ok, thanks, but now, How do you do to use "Media.setItemInfo"???????