Experts,
I need some help with the File.Replace method. I’m trying to employ wild cards to replace an ambiguous filename with a file path. Specifically,
I want to replace everything preceding the “.” until the first “\” (i.e. the filename)
For example, consider the following path:
C:\Program Files\Microsoft Corporation\Microsoft\AmbiguousFileName.txt
I'd like to change the file name to:
C:\Program Files\Microsoft Corporation\Microsoft\test.cfg