String pLocalFilePath = "" ; // to copy the file path String pSaveFilePath = "" ; // the specified storage path IF (the File.Exists (pLocalFilePath)) // must determine whether to copy the file exists { File.Copy (pLocalFilePath , pSaveFilePath, to true ); // three parameters are the source file path, storage path, storage path if the same file is replaced }