Search the Community
Showing results for tags 'filedir'.
Hello again, I'm trying to use the FileMove function to rename a bunch of text files. Some of the files have "_1" at the end of their name, for example, "File123_1.txt". I want to remove the "_1" so it would become "File123.txt". What I currently have... FileMove($sSource & "\*_1.txt", $sDestination & "\*.txt") But since I'm using a wildcard, it doesn't appear to be working. I think it's just replacing .txt with .txt. Am I going about this the wrong way? How can I use wildcards and still accomplish this? Any help is greatly appreciated ^__^