Răspuns File.Replace method

  • 21 aprilie 2012 23:14
     
     

    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

Toate mesajele