Hello,
I am moving a file to a folder as follows:
Dim file As New System.IO.FileI nfo(Server.MapP ath(path))
file.MoveTo(Ser ver.MapPath(new path))
This is working but if there is already a file with the same name in
the destination folder I get an error.
I would like to replace the file if one exists.
How can I do this?
Thanks,
Miguel
I am moving a file to a folder as follows:
Dim file As New System.IO.FileI nfo(Server.MapP ath(path))
file.MoveTo(Ser ver.MapPath(new path))
This is working but if there is already a file with the same name in
the destination folder I get an error.
I would like to replace the file if one exists.
How can I do this?
Thanks,
Miguel
Comment