Windows File Details

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Joerg Hamacher
Posts: 124
Joined: Thu Feb 11, 2016 12:01 am

Windows File Details

Post by Joerg Hamacher »

Hi,

I have to retrieve windows file details in a VL form. These details are displayed when clicking with right mouse on a file in windows explorer and then selecting "Details" in the file's properties window. Of course these can be different values depending on the type of the file.
How can this be managed?

Many thanks in advance,
Joerg
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Windows File Details

Post by Stewart Marshall »

To access the Windows File System information, it's probably best to enrol the Windows FileSystemObject (https://msdn.microsoft.com/en-us/librar ... s.84).aspx) as an ActiveX.

After that, you'll have to ask Microsoft where to get specific file information from.

I've attached a sample form that returns the created date and file size for the selected file.

Regards
Attachments
WindowsFileSystem.zip
(13.43 KiB) Downloaded 1039 times
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Windows File Details

Post by MarkD »

Also the GET_DIR option of http://docs.lansa.com/14/en/lansa015/in ... ervice.htm can return file size and date details.
Post Reply