Hi
I have the code where am I searching trough a direcory. But now I need the help the exclude one folder where I dont want to search. Till now this code is working but without exluding the folder called “nicht definiert”
Directory.GetFiles("C:\Users\msauro\Desktop\Tester","PL_*.pdf",SearchOption.AllDirectories).Where(Function(s) not s.Contains("\nicht definiert")).ToArray()
tried with this one: Put the whole path Directory.GetFiles(“C:\Users\msauro\Desktop\Tester”,“PL_*.pdf”,SearchOption.AllDirectories).Where(function(s) NOT s.Contains(“C:\Users\msauro\Desktop\Tester\nichtdefiniert”)).ToArray()