Jump to content
Sign in to follow this  
b47chguru

How to change a specific set of Properties of a file

Recommended Posts

b47chguru

How is it possible to change the specific properties of a file..

for eg: to change the Album of an mp3 file..

i know we can get the properties of file with the UDF _FileGEtProperty..

thanks in advance..

Share this post


Link to post
Share on other sites
Spiff59

The file information you are asking about is not part of the standard file information handled internally by the OS or the disk operating system (NTSF, etc). None of the standard Autoit disk/file functions like _FileGEtProperty will work for you.

MP3 files contain a special header section containing all the relevent MP3 data. If you search the Examples forum for "MP3" you'll find a couple UDF's and other examples you might use, or at least learn from.

Edited by Spiff59

Share this post


Link to post
Share on other sites
Spiff59

Pardon me for jumping to conclusions. I notice _FileGetProperty() is not a standard function, but one from the Examples forum, and it does work with MP3's. It appears to be much the same as this thread from 2006 (updated in 2009) where your same question is asked with no positive answer given: http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=160880&page=1

Share this post


Link to post
Share on other sites
BrewManNH

As I already stated in the thread for _FileGetProperty, there is no SetProperty method available in Windows. You can change certain properties, like dates and times and file attributes, but if you want to change the tags of an MP3 file, you need to use a UDF designed to write the tags,


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
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
Sign in to follow this  

×