I want to get all files started by something, for example, "javaw" in a certain directory. Thanks for the time.
I want to get all files started by something, for example, "javaw" in a certain directory. Thanks for the time.
There is not much secret:
Directory.GetFiles("C:\diretorio", "javaw*", SearchOption.AllDirectories);
For recursive search, and
Directory.GetFiles("C:\diretorio", "javaw*", SearchOption.AllDirectories);