vavraCZe

Program

Feb 10th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Net;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Forms;
  12.  
  13. namespace DownloadTest
  14. {
  15.     public partial class Form1 : Form
  16.     {
  17.         public Form1()
  18.         {
  19.             InitializeComponent();
  20.         }
  21.  
  22.         private void button1_Click(object sender, EventArgs e)
  23.         {
  24.             WebClient downloadL = new WebClient();
  25.             downloadL.DownloadFile("https://dl.dropbox.com/u/8167722/OP.zip", @"Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData))");
  26. //ma to byt takto? nebo... bez @ a ""? Ale když to dám bez, tak nemá přístup do složky... A nejede ani 1.
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment