Jump to content

Recommended Posts

Posted

I volunteer at a local hospital radio station

 

Our mp3 library is now too large

 

I want a script I can run as a scheduled task to copy to another folder any tracks played today

 

- so building a library of tracks that are used

 

any ideas?

Posted

One of the NTFS file properties is last accessed date - you could check that and if it's in the last 24 hours then copy the file to another location.

 

the downside with this is that *any* access to the file (even listing its properties in Explorer) triggers an update (so if you open a folder to see what files are there and have it in the details view where it shows the file info then all the files there are flagged as accessed)

 

Also, the last accessed date is not updated on Vista/Windows 7 by default (I'd guess because the info is not as useful as it might be) - you can turn it back on (fsutil behavior set disablelastaccess 0 at a command prompt)

Posted

Alternatively, do you use iTunes to play the music (or could you?) the library contains the last played date for every file. It's an XML file so you could hack the data out of it fairly easily but there's also an iTunes API.

 

There is an API for Windows Media Player but I've never found it easy to use (ie I've never actually managed to do anything worthwhile with it!)

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



×
×
  • Create New...