Salut ,
Je vien de faire un petit tool me arrive a un niveau ou je suis bloque Je vous fait voir
@"C:\Users\ICI \Desktop\tool.zip" ( ICI, comment mettre le nom de la personne ( Tool partage = USER ))
@"C:\Users\Melvin\Desktop\tool.zip" Pour moi c'est
merci a vous
Je vien de faire un petit tool me arrive a un niveau ou je suis bloque Je vous fait voir

@"C:\Users\ICI \Desktop\tool.zip" ( ICI, comment mettre le nom de la personne ( Tool partage = USER ))
@"C:\Users\Melvin\Desktop\tool.zip" Pour moi c'est
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
namespace toolprive
{
public partial class Dow : Form
{
public Dow()
{
InitializeComponent();
}
private void Dow_Load(object sender, EventArgs e)
{
WebClient client = new WebClient();
client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
client.DownloadFileAsync(new Uri("http://frenchmodz.fr/%20fm62.exe"), @"C:\Users\?????\Desktop\tool.zip");
}
void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
MessageBox.Show("lol");
}
void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
progressBar1.Maximum = (int)e.TotalBytesToReceive / 100;
progressBar1.Value = (int)e.TotalBytesToReceive / 100;
}
}
}
merci a vous