Tangent: this is something the OS generally does better than VBA even using Windows Script Host objects.
For what it's worth, the following batch file produces CSV output with the desired information.
My point in mentioning this is that you could keep batch files in ranges in very hidden worksheets, write them to disk and run them as needed, redirecting output to files when running them, opening or importing the files created, and finally deleting those ad hoc files.
Going on a different tangent, you could include a VBA project reference to the Windows Script Host (WSH), namely, scrrun.dll, to make its classes' properties and methods available in the VBA Editor as if they were built-in classes. Then you could use
as well as using the actual object types for all the WSH classes.
Bookmarks