本文介绍了C#:System.Diagnostics.Process.Start(QUOT; Explorer.exe的&QUOT ;, @" /选取[+文件路径)。无法打开文件时,文件的名称是Unicode字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想与窗口Explorer中打开文件的位置。我使用C#的代码

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

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

它用简单的英文字符运作良好,但它不能打开,如果该文件的位置文件的名称是Unicode字符(噻语言)。

it works well with simple English character, but it could not open the file's location if the file's name is Unicode character (Thia language).

任何人都可以帮助吗?

Anyone could help please?

推荐答案

尝试把它放在引号:

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

这篇关于C#:System.Diagnostics.Process.Start(QUOT; Explorer.exe的&QUOT ;, @" /选取[+文件路径)。无法打开文件时,文件的名称是Unicode字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 02:05