Try to get all the file names in the folder into an array of strings with Directory.GetFiles(*your folder path). Then use a for each string in the array - use a replace function for the hard coded part of the path like string.replace(“C:\Users\u6048949\Downloads",”") - it will replace the hard coded part of the string with nothing and you will be left with report1579017966725.xls. Then you can use another replace for the .xls part.