Re: Magic 9.4 - get OS file datetime


Florian Groothuis
 

In V9.4 you can use CallCom():

 

·         Create 2 virtuals, attribute OLE, Windows Script Host Object Model, one as FileSystemObject (A) and one as File (B)

·         Create 1 virtual, attribute Date (C)

·         CallCom(A, CallMethod,GetFile, Pathname to file,B)

·         CallCom(B,GetProperty,<choose_desired_prop>,C

 

Works like a charm

 

 

 

Van: main@magicu-l.groups.io [mailto:main@magicu-l.groups.io] Namens oded.lavee@...
Verzonden: donderdag 19 januari 2017 9:11
Aan: main@magicu-l.groups.io
Onderwerp: [magicu-l] Magic 9.4 - get OS file datetime

 

Hi

how can i get the the date and time of a file in folder?

This is 9.4 so the fileinfo function is not available

User32? Kernel32?

Any samples?

Thanks

Met vriendelijke groet - With kind regards,

Florian Groothuis
Analist/programmeur
+31 (0)6 21927914


meilink.eu

Meilink Beheer Borculo B.V. • Kamerlingh Onnesstraat 1
7271 AZ  Borculo • Nederland • +31 (0)545 253525
KvK 08009803 • Our general terms and conditions apply • Disclaimer


Join main@magicu-l.groups.io to automatically receive all group messages.