March 10, 2023

Under dos, how to get wildchar matched file names?

PS E:> dmd a.d
PS E:> .\a.exe a.*
args=["a.exe", "a.*"]

d-glob doesn't function well under windows dos either.

March 10, 2023
On 3/9/23 19:24, John Xu wrote:
> Under dos, how to get wildchar matched file names?

Have you tried dirEntries? It supports glob patterns:

  https://dlang.org/library/std/file/dir_entries.html

Ali