Hello,
I have the follwing code that I'm using to renam a text file, which works fine:
My.Computer.FileSystem.RenameFile("d:\FTP\Void\Unsubs\Test\CW_EmailUnsubs022912.txt", "EmailUnsubs.txt")
My problem is that the file that I need to rename ("CW_EmailUnsubs022912.txt") always has the date in the name, so the next day the file name will always be different. So today the name of the file will be "CW_EmailUnsubs030112.txt."
The first part of the file name will always be the same, the only thing that will change is the date. I need a script that will change the name of the file no matter what the date is, so I need to use a wildcard for the date part. I tried using an * "CW_EmailUnsubs*.txt" but it is invalid.
Any suggestions would be really appreciated!
Thanks!
I have the follwing code that I'm using to renam a text file, which works fine:
My.Computer.FileSystem.RenameFile("d:\FTP\Void\Unsubs\Test\CW_EmailUnsubs022912.txt", "EmailUnsubs.txt")
My problem is that the file that I need to rename ("CW_EmailUnsubs022912.txt") always has the date in the name, so the next day the file name will always be different. So today the name of the file will be "CW_EmailUnsubs030112.txt."
The first part of the file name will always be the same, the only thing that will change is the date. I need a script that will change the name of the file no matter what the date is, so I need to use a wildcard for the date part. I tried using an * "CW_EmailUnsubs*.txt" but it is invalid.
Any suggestions would be really appreciated!
Thanks!