Skip to content

How to move exe file to a different location in the local machine

anushka thialkarathne

Asked Jun 3, 2007, 8:19 PM EDT1 answer
Share
LinkedInX
Hi c# experts. I need your help again. I want to move files from the current location to another location in the local machine. the new locations are expected to be dynamic. That means it must be possible to move the file to any location that i specify. These files are exe's, rar's ,zip's & many other types.  please give me some guidelines.

 

1 Answer

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

  • 0
    Try this bro.

    Reference.
    TypeScript
    using System.IO;
    
    private void button1_Click(object sender, EventArgs e)
    {

    File.Move(textBox1.text, textBox2.text); //textBox1.text is your source file and textBox2.text is your destination file

    }

    0