Access to the path C:\... is denied?

Posted by user2969489 on Stack Overflow See other posts from Stack Overflow or by user2969489
Published on 2013-11-08T15:51:10Z Indexed on 2013/11/08 15:53 UTC
Read the original article Hit count: 110

Filed under:

I've created a simple download manager with two textboxes and two buttons, one for download and one for specifying the path where i want to save the downloaded file... (folderBrowserDialog1.SelectedPath;) But when i specify the path that the file is going to be saved, it requires me to specify the type too like C:\Users\Me\Desktop\photo.jpg...When i leave it without \photo.jpg it shows C:\Users\Me\Desktop' is denied. I want that automatically to detect the extension and not to write \photo.jpg, bmp...everytime.

Thanks.

© Stack Overflow or respective owner

Related posts about c#