Skip to content

Restoring copied file to the original location using C#

p c

Asked Feb 28, 2008, 1:00 AM EST2 answers
Share
LinkedInX
Hi all,

I m working on a windows application in C#...
I have copied a file using  System.IO.File.Copy()
Now i want to restore this copied file to the original location..
How can i do so?
I want code in C#

Thanx

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0
    Not sure I understand.  Do you want to copy over the original file with the file you already copied?  Why not use the same command to File.Copy to copy it back?
    0
  • 0
    Actually I want to restore the copied file to the original location.
    Foer example I hv copied a file from My Documents to the desktop..
    Now i want to restore the file on desktop to the original location ie to My Documents..
    0