system.IO.File.Move(srcFilename,destFilename)
But what has that to do with file attributes?
So what you need is a way to get the tag from the wmv file ?
(in that case I think I can help you)
I have some code you can use. send me an email to: aaron(at)wardfamily(dot)cc
Thanks!
Thanks,
"Minds are like parachutes. They work best when open."
Since corresponding by email doesn't do any good to anyone else, I will post some sample code to retrieve a file's extended properties:
Dim arrHeaders(35)Set objShell = CreateObject("Shell.Application")Set objFolder = objShell.Namespace("C:\Folder")For i = 0 to 34 arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i)NextFor Each strFileName in objFolder.Items For i = 0 to 34 Wscript.Echo i & vbtab & arrHeaders(i) _ & ": " & objFolder.GetDetailsOf(strFileName, i) NextNext
Dim arrHeaders(35)
Set objShell = CreateObject(
Shell.Application
)Set objFolder = objShell.Namespace(
C:\Folder
)For i = 0 to 34 arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i)NextFor Each strFileName in objFolder.Items For i = 0 to 34 Wscript.Echo i & vbtab & arrHeaders(i) _ &
:
& objFolder.GetDetailsOf(strFileName, i) NextNext
The example enumerates every file in a folder and displays each of the 35 properties available:
0 Name1Size2Type3Date Modified4Date Created5Date Accessed6Attributes7Status8Owner9Author10Title11Subject12Category13Pages14Comments15Copyright16Artist17Album Title18Year19Track Number20Genre21Duration22Bit Rate23Protected24Camera Model25Date Picture Taken26Dimensions27Not used28Not used29Not used30Company31Description32File Version33Product Name34Product VersionIf anyone needs help understanding this, let me know,Steve
If anyone needs help understanding this, let me know,Steve
Nice work babgVant.. looked high and low for your solution!
So, for reference:
10 - Name of show29 - Episode title30 - Program description