hi guys i want to use “foreach” for each item in a directory with extension .xls and file name starts with “Network Attack”. the condition for .xls is working fine but the condition for file name starts with network attack is not working.
i tried :
item.ToString.StartsWith(“Network Attack Report”)
item.ToString.StartsWith(“Network Attack Report”)=true
Path.GetFileName(item.ToString) = “Network Attack *”
but they dont work
anyone knows the solution ?