お勧めの重複・類似・近似画像処理ソフト3at SOFTWARE
お勧めの重複・類似・近似画像処理ソフト3 - 暇つぶし2ch607:名無しさん@お腹いっぱい。
11/02/05 21:33:50 6i7iCbV00
名前の衝突ならwhileを回すだけで解決できると思う…

static void fileMove(string source, string dest)
{
string buf = dest;
int index = dest.Length - Path.GetExtension(dest).Length;
int count = 2;
while (File.Exists(buf)) buf = dest.Insert(index, string.Format(" ({0})", count++));
File.Move(source, buf);
}


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch