Current location - Trademark Inquiry Complete Network - Futures platform - Find the code of C # and put the file directly in a fixed path.
Find the code of C # and put the file directly in a fixed path.
Private void button 1_Click (object sender, EventArgs e)

{

Relocation = check box 1. Checked;

StrUrl = textBox 1。 Text; //Remote server file to download

StrFileName = textBox 1。 Text.Substring(textBox 1。 text . LastIndexOf(@ "/)+ 1); //File name saved locally

StrFileName = System。 IO.Path.Combine(@"d:\mp3 ",StrFileName); //Save it in the local D:\MP3 directory, and you can modify it according to your own situation.

ThreadDown = new Thread(new ThreadStart(DownFile));

Smooth. start();

}

}