CORRECTION Is there a way to show if a file is protected?

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

gapcnet
Posts: 3
Joined: Mon Nov 26, 2007 6:15 pm
Contact:

CORRECTION Is there a way to show if a file is protected?

Post by gapcnet »

I had a bug in my code.

From a new MediaMonkey user that fell in love with it quickly


Via a VBscript I am able to see if a file is [drm] Protected. Can this be added to a MediaMonkey script that will windup allowing me to sort or find all protected files?

Thanks in advance.

' Set the folder
fldr="C:\Documents and Settings\Guy\My Documents\My Music\Bill Douglas\A Place Called Morning"

Set objShell = CreateObject("Shell.Application")

Set objFolder = objShell.Namespace(fldr)
HeaderName = objFolder.GetDetailsOf(objFolder.Items, 28)
For Each strFileName in objFolder.Items
Wscript.Echo i & vbtab & HeaderName _
& ": " & objFolder.GetDetailsOf(strFileName, 28)
Next
Guy Austrian
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Yes, this is definitely possible. Are you wanting help to write this script yourself, or are you requesting that someone else write it?

If you'd like me to have a go, please email me a small track with DRM (as I don't have any) so I can test this and see what I can do.

If you want to have a go yourself, great! What help do you need? :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
gapcnet
Posts: 3
Joined: Mon Nov 26, 2007 6:15 pm
Contact:

Post by gapcnet »

Thanks for you offer! I'll try and find a small DRM song to send you.

BTW - If I can ever return the favor with windows based VBscript, WMI, ADSI, HTA's just let me know.
Guy Austrian
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

I might hold you to that! :)

If you can do VBScript outside of MM, it's not a big step to doing it within MM. Maybe once I've written this script for you, you'll be able to see the steps needed.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Post Reply