www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to expand wildchar under dos ?

reply John Xu <728308756 qq.com> writes:
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.
Mar 09 2023
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
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
Mar 10 2023