Chris S.
(MM club member)
2002-10-18 07:03 PM
Using Shell32 to GetFileDetails (e.g. last modified time)

Kirm, lets move your discussion out of the GUICopy() UDF thread.

I don't think you can use anymore flags than what are listed, remember we're dealing with a scripting language, not C++.

Even so, you should be able to get last modified date from Shell32 but you'll have to script around any copy command.

Here is something that returns the last modified date of a file. Hopefully this is enough to get you started.

code:
break on

$objShell = CreateObject("Shell.Application")
$objFolder = $objShell.NameSpace("E:\")

$objFolderItem = $objFolder.ParseName("capa.kix")

$objInfo = $objFolder.GetDetailsOf($objFolderItem, 3)

$objInfo ?



**DONOTDELETE**
(Lurker)
2002-10-18 07:08 PM
Re: Using Shell32 to GetFileDetails (e.g. last modified time)

Thanks for putting me on the right track Chris, I'll give it a try.