How to know the name of StartUp folder on device?

  • Thread starter Thread starter juvi
  • Start date Start date
J

juvi

Hello,

I have got a question regarding some special folders like "StartUp". This
folder is named "AutoStart" on german platform.

Or
\Windows\Start Menu\Programs\Games is on german
\Windows\Startmenü\Programme\Spiele

How to get the correct folder names for "StartUp" and for the sample above?

thx
juvi
 
Hi Juvi,

juvi said:
\Windows\Start Menu\Programs\Games is on german
\Windows\Startmenü\Programme\Spiele

How to get the correct folder names for "StartUp" and for the sample
above?

Within the .NET Compact Framework you can get the localised path to some of
these folders via the Environment.GetFolderPath method (documented on MSDN
at
http://msdn.microsoft.com/en-us/library/system.environment.getfolderpath.aspx)

For example

string path = Envrionment.GetFolderPath(Environment.SpecialFolder.System);

If you are using .NET CF 1.0 or need one of the special folders not listed
within the managed enumeration you may also investigate Platform Invoking
the SHGetSpecialFolderPath API (as discussed in an MSDN article titled "An
Introduction To P/Invoke and Marshalling on the Microsof .NET Compact
Framework" available at
http://msdn.microsoft.com/en-us/library/aa446536.aspx).

Hope this helps,
Christopher Fairbairn
 
Back
Top