locked
Special folder RRS feed

  • Question

  • In Windows Mobile 5, how can I retrieve the Program Files directory name?

    In english in "Program Files", in italian "Programmi".

    Then

    Environment.GetFolderPath(Environment.SpecialFolder.ProgramsFiles)

    doesn't work because the Environment.SpecialFolder.ProgramsFiles is not support on compact framework.

     

    Thanks

    Wednesday, April 19, 2006 9:07 AM

Answers

All replies

  • Hi!

    Does CF support GetEnvironmentVariable()? If yes - you can use "ProgramFiles" environment variable to get to the real folder name.

    P. S. Docs says that it supported in Windows Mobile 2003.
    Wednesday, April 19, 2006 9:53 AM
  • I don’t believe there’s environment on CE, so that won't work. Please P/Invoke SHGetSpecialFolderPath() instead:

    http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=95

    Wednesday, April 19, 2006 4:52 PM