I copy image files from one folder to another with help of File.Copy()
method.
I need to give unique file name to the copied image file before it is pasted to the folder.
Any idea how I can implement this?
You can use Path.GetTempFileName
more info at: http://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename(v=vs.100).aspx
a quote from the link:
"Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With