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: [] Namens oded.lavee@...
Verzonden: donderdag 19 januari 2017 9:11
Onderwerp: [magicu-l] Magic 9.4 - get OS file datetime



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?


Met vriendelijke groet - With kind regards,

Florian Groothuis
+31 (0)6 21927914

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 to automatically receive all group messages.