使用此代码,我可以下载文件,但我需要知道文件名。是否有任何方法可以下载目录中的任何文件(目录链接:https://www.dropbox.com/sh/koao8dlfpcao8sk/XzDZMfejiF)并运行它?
private void Update_Load(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
webClient.DownloadFileAsync(new Uri("https://www.dropbox.com/s/6o5kvzr7s0c6mne/Test.txt"), @"C:\Users\Admin\Downloads\Test.txt");
}