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?
#17
Information 
(05-22-2024, 10:03 PM)SMcNeill Wrote: Note that you can use wmic to get all sorts of attribute information on your files, easily from the command line:

That's good to know, and gives me a "bright idea", LoL.
Actually this might be useful for a bunch of things, not just this...
What about a command (or option / flag) that runs a command prompt, but instead of piping the output to a file, it goes straight into memory, and populates a string variable?
That would simplify things a little.

Either way, that wmic can come in handy.
What about the Mac/Linux equivanent?

And what can be used to update a file's attributes?
Say you want to alter a file's Modified Date, or make it read only or writable?

Thanks for sharing the wmic info.
Reply


Messages In This Thread
RE: how to get a file's modified date/time and size in bytes? - by madscijr - 05-22-2024, 10:22 PM



Users browsing this thread: 13 Guest(s)