I'm using this function to copy a file into a program directory:
new Computer().FileSystem.CopyFile(source,
destination,
UIOption.AllDialogs,
UICancelOption.ThrowException);
If a file is there with the same name, the user is shown the regular windows dialog that asks to replace, cancel or copy with a new name.
Is there anyway to return the new name for that file?
I found this code which does what you are after, my interpretation is in C# though...
}