C#: System.Diagnostics.Process.Start("Explorer.exe", @"/select" + FilePath). Can not open file when file's name is unicode character -


I want to open the file's location with Window Explorer. I am using C # with code

  system. Diagnostics Process. Start ("Explorer .exe", @ "/ select," + filepath)   

This works well with simple English characters, but if the file is named Unicode If the character is (Thaa language), then it can not open the file's location.

Anyone can help please?

Try putting it in quotation marks:

  System. Diagnostics.Process. Start ("Explorer .exe", @ "/ select," "+ + filepath +" \ "")    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -