I'm trying to create a launcher for one game, and I would like to implement in it the function of its automatic loading.

webClient.DownloadFile(new Uri("https://yadi.sk/d/BvZh_cvnseoyF"), System.IO.Path.Combine(path.Text, System.IO.Path.GetFileName("zerahypt.zip"))); 

This option does not work. Instead of the necessary file, an incomprehensible html page is loaded.

  • link to source code - user213974
  • 3
    Well, and the link you have on the page, not the file. Direct links, most file sharing does not. - Monk
  • And how can you solve this problem? - user213974
  • Use direct links. For serious loads I can not advise anything, and so - some sort of github will fit. - Monk
  • Obviously, do not use file hosting. Pay money for the server or CDN, put the file there. - VladD

0