Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Upload(string filename)
- {
- try
- {
- Uri adress = new Uri("ftp://ftp.wsiz.rzeszow.pl/w53850");
- string path1 = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "km2.xml");
- WebClient client = new WebClient();
- client.Credentials = new NetworkCredential(username, password);
- client.BaseAddress = "ftp://ftp.wsiz.rzeszow.pl/";
- client.UploadFile(filename,WebRequestMethods.Ftp.UploadFile, path1);
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement