What's the difference between SpecialFolder.Desktop and SpecialFolder.DesktopDirectory?

前端 未结 2 1262
执笔经年
执笔经年 2020-12-05 09:43

I\'m confused about the differences between these two special folders.

Here\'s a code snippet that writes the output of each, but they output the same thing.

<
相关标签:
2条回答
  • 2020-12-05 10:09

    The true answer is that those can be different especially width profiles on servers. The user might be running a desktop as from a fileshare, or have it on a local system... If redirected the OS normally doesnt inform other software that it has done that. But if you realy want to get there...

    0 讨论(0)
  • 2020-12-05 10:10

    A directory is a location in the file system. A folder is a location in the shell namespace. A directory is a kind of folder. A virtual folder is not necessarily backed by a directory. For example consider libraries or search folders.

    The user's desktop directory is a location in the file system. The desktop folder merges that with virtual items like all users items, recycle bin, shortcut to documents folder etc.

    0 讨论(0)
提交回复
热议问题