Access to the path 'C:\Users\xxx\Desktop' is denied

后端 未结 5 475
北恋
北恋 2021-01-07 17:10

I have thoroughly searched the entire access denied questions and did\'t find any question related to access to windows form on my own system all the questions are related t

5条回答
  •  星月不相逢
    2021-01-07 17:19

    You may have to run your program/IDE as Administrator to access that folder. I'm not exactly sure why, but I've had the same problem. Something to do with default Windows permissions. Let us know if it works!

    Edit:

    The path leads to a folder - not a file. I believe FileStreams in C-based languages must actually point to a file, rather than a directory: ie. C:\Users\Username\Desktop\file.extension

提交回复
热议问题