0

The games folder does not feature in Environment.SpecialFolder collection.

I want to programmatically add a shortcut to that folder.

joe
  • 8,344
  • 9
  • 54
  • 80
VRM
  • 151
  • 2
  • 11
  • 1
    P/Invoke the [`SHGetKnownFolderPath` function](https://msdn.microsoft.com/en-us/library/windows/desktop/bb762188.aspx), pass `FOLDERID_Games` as the `KNOWNFOLDERID` value. Make sure to write fallback code for operating systems where this function and/or the Games folder do not exist. – Cody Gray - on strike Apr 30 '15 at 06:18
  • @Joe, Thank you. I did that, but couldn't get the path since by definition, the Games folder is declared as Virtual. How can I add a shorcut to it then? – VRM May 01 '15 at 14:18

0 Answers0