How to know the name of StartUp folder on device?

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
 
C

Christopher Fairbairn [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top