Author Topic: How to get Windows 10 system files information in QB64 program?  (Read 2641 times)

0 Members and 1 Guest are viewing this topic.

Offline Richard

  • Seasoned Forum Regular
  • Posts: 364
    • View Profile
I am trying to get Windows 10  x64 system files information via a QB64 program - the kind of info is Size, Date, etc.

An example of system file is C:\hiberfil.sys

Currently I can use a third party software but it takes about 10 minutes to load each time (and does not auto-refresh or even manually refresh) and I cannot access the information I need via QB64 SHELL.

An example from the third party software is below



  [ You are not allowed to view this attachment ]  




Is there a Windows API or something I can use?





Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: How to get Windows 10 system files information in QB64 program?
« Reply #1 on: August 06, 2021, 01:56:09 pm »
Yes, there is an API. I don't have time to work on that for you but you can check: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/ns-fileapi-by_handle_file_information.

Edit: I just realized that this is for system files. I will have to check.
« Last Edit: August 06, 2021, 01:59:33 pm by SpriggsySpriggs »
Shuwatch!