Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get locale specific directory in My documents

Tags:

c#

window

locale

I have my custom application that generates a directory in My documents path, after installation the application uses that directory, but i got an issue in Chinese windows OS, where my application folder name appears in Chinese, so is there any way i can get the file name properly in "en" or some wordaround so that i can that directory name at runtime.

like image 452
Vaibhav Avatar asked Oct 01 '11 04:10

Vaibhav


1 Answers

Use the special folders in System.Environment

var path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); var subFolderPath = Path.Combine(path, "sub folder");

like image 179
Matthew Hazzard Avatar answered Sep 24 '22 02:09

Matthew Hazzard