문제

파일을 특정 폴더로 다운로드하고 싶습니다.WebClient.DownloadFile를 사용하고 있지만, 내가 원하는 것은 사용자 가이 파일을 저장할 위치를 선택하고 모든 폴더로 다운로드하는 것이 아닙니다.

어떻게 할 수 있습니까?

도움이 되었습니까?

해결책

The folder that the user would download the file to would depend on their browser, and system settings.

All you can do is provide the file to download, and it would be up to them (and their browser) to select a local folder (on their system).

If you want to control that process, you would have to use an embedded plugin like Java, Silverlight, Flash, etc.

다른 팁

If you are using Windows Forms, you can use the SaveFileDialog class to allow the users to pick a file name, and then pass that name to the second parameter of WebClient.DownloadFile.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top