zachary1337 Posted August 5, 2014 Report Posted August 5, 2014 Cum as putea face sa imi descarce un fisier unde localizez , eu mai pe inteles "unde aleg eu in ce folder" am facut codu urmator dar salveaza pe desktop My.Computer.Network.DownloadFile("url", System.IO.Path.Combine(My.Computer.FileSystem.SpecialDirectories.Desktop, "nume.extensie")) Quote
.Breacker Posted August 5, 2014 Report Posted August 5, 2014 Dim files As String() = Directory.GetDirectories(folderBrowserDialog1.SelectedPath) Quote
daNNy.bv Posted August 5, 2014 Report Posted August 5, 2014 eu asa am facut intr-un proiectadauga un savefiledialogImports System.Net Dim WithEvents wc As New WebClientPrivate Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click SaveFileDialog1.Filter = "ZIP files (*.zip)|*.zip" SaveFileDialog1.DefaultExt = "zip" SaveFileDialog1.AddExtension = True SaveFileDialog1.FileName = "nume.zip" SaveFileDialog1.ShowDialog() wc.DownloadFileAsync(New Uri(wc.DownloadString("http://linkul/nume.zip")), SaveFileDialog1.FileName) End Subin loc de zip pui extensia pe care o are al tau Quote
.Breacker Posted August 5, 2014 Report Posted August 5, 2014 eu asa am facut intr-un proiectadauga un savefiledialogin loc de zip pui extensia pe care o are al tau @HuaN, s? ?tergi AddExtension. Quote