Page 1 of 1 1
Topic Options
#88773 - 2002-10-18 07:03 PM Using Shell32 to GetFileDetails (e.g. last modified time)
Chris S. Offline
MM club member

Registered: 2002-03-18
Posts: 2368
Loc: Earth
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.

break on

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

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

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

$objInfo ?

#88774 - 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.
Page 1 of 1 1

Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 315 anonymous users online.
Newest Members
karimKix, NicoK, Kelly001, MichaelK72, Janneman
17775 Registered Users

Generated in 0.057 seconds in which 0.033 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google: