Viesturs
Viesturs

Reputation: 1691

How to access environment variables from winrt

Is there any subsitute of getenv function under WinRT?

Or maybe it's not possible to access environment variables at all?

Upvotes: 4

Views: 1032

Answers (1)

Connie Hilarides
Connie Hilarides

Reputation: 1735

I believe it is not possible to retrieve environment variables from a WinRT app. However, your app has a local, roaming, and temp folder available to it. Windows.Storage.ApplicationData.Current has all the root folders you need to create/read/delete files and folders in your app's folders.

Upvotes: 1

Related Questions