viernes, 2 de septiembre de 2022

Rename File NameOriginal(n)

 while (File.Exists(newFullPath))

                {

                    string tempFileName = string.Format("{0}({1})", fileNameOnly, count++);

                    newFullPath = Path.Combine(destination, $"{tempFileName}{extension}");

                }

No hay comentarios:

Publicar un comentario