Hello. It might be easier to help if you showed a snippet of your workflow, like a screenshot.
But here are some tips that will help.
Let’s assuming you use .GetFiles() or .GetEnumerateFiles()
So, then, you can check the filename using Path.GetFilename or Path.GetFilenameWithoutExtension
It would look like this:
For each file In Directory.GetFiles(foldername, "*.txt")
If activity: condition: Path.GetFilenameWithoutExtension(file).ToLower.Equals("abc")
<perform actions>
Note: You can also use File.Exists() instead rather than getting all files.
System.IO.File.Exists( Path.Combine(foldername, "abc.txt" )
Regards.