I want to find files that match my mask such as 96220*.pdf. We store revision information after the part number and I need to snag whatever is available in the release folder that matches my root part number.
I am able to build the path where the files are located. I am stuck on how to display the name of the file that is found.
How do I return a string that I can use to build by hyperlink?
filestub = leftchars + @"000 - " + leftchars + "999";
dirstub = @"d:\release\" + filestub + @"\";
files2find = dirstub + s2parse + @"*.pdf";
filemask = s2parse + @"*.pdf";
Label1.Text = "Dirstub: = " + dirstub; // this works
Label2.Text = "filemask = "+ filemask; // this works
string myfiles = Directory.GetFiles(dirstub, filemask);
if (myfiles != null)
Label3.Text = myfiles.ToString(); //help! displays "system.string"