Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get a file's modified date/time and size in bytes?
#32
Thanks Steve, now we have at least 4 ways to do it in Windows - Powershell, API, forfiles and that other one. I'm hearing them say there is no easy way in Mac or Linux, though googling it says for Linux/Mac:

Code: (Select All)
stat -c "%y : %n" my_file.txt

This command will output something like:
Code

2024-05-04 10:00:00 : my_file.txt
Can that be shelled out from QB64PE on Mac / Linux?
Reply


Messages In This Thread
RE: how to get a file's modified date/time and size in bytes? - by madscijr - 05-04-2025, 05:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Font Size in Threads Dimster 5 376 12-12-2025, 04:49 PM
Last Post: Dimster
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,081 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 227 10-26-2025, 06:58 PM
Last Post: madscijr
  question on determining time spent in area fistfullofnails 9 845 08-25-2025, 01:55 PM
Last Post: fistfullofnails
  Testing against multiple elements at a time without select case CMR 4 842 04-17-2025, 02:16 AM
Last Post: CMR

Forum Jump:


Users browsing this thread: 1 Guest(s)