@Markus3003 - In that case, change your logic as shown below…
For Each code should be Directory.GetFiles(“YourFolderName”)
Here Each File will give you the path name and next “5555” + path.GetFileName(Eachfile).Substring(0,6) will give you the invoice #…