Hi, I'm trying to use a wildcard for my text-replacing script but unfortunately, all of my previous attempts failed... Const ForReading = 1 Const ForWriting = 2 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile("bla.txt", ForReading) strText = objFile.ReadAll objFile.Close strNewText = Replace(strText, "tutu", "tata") Set objFile = objFSO.OpenTextFile("bla.txt", ForWriting) objFile.WriteLine strNewText objFile.Close I just want to specify "*.txt" rather than "bla.txt" Thanks by advance