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);
}