Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to capture the modified date
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00318122
Message ID:
00318453
Vues:
22
>Hello,
> Can anyone tell me how to capture the modified date for a file from the windows explorer?? Thanks.

The easy way is with the Scripting.FileSystemObject:

oFSO = CREATEOBJ('Scripting.FileSystemObject')
oFile = oFSO.GetFile(cFileToLookAt)
? oFile.DateLastModified

Scripting.FileSystemObject is a part of the Windows Script Host.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform