c# - How do I search for a list of files using wildcard -


How do I use wildcards in C # to list the files in the selected folder?

Your friend is here:

  Directory.GetFiles (@ " C: \ Users \ Me \ Documents "," * .docx ");  

Or, recurring:

  directory. Getfile (@ "c: \ user \ m \ document", "* .docx", searchoptions, all directories);  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -