I want to open file's location with window Explorer. I am using C# with code
System.Diagnostics.Process.Start("Explorer.exe", @"/select," + FilePath)
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?
Sam HobbsPosted Sep 2, 2011, 1:53 PM
Also, are you sure that the file path (including name and extension) is 260 characters or less? If not then it will not work unless you use Universal Naming Convention (UNC) names.
Also note that questions in forums won't work if you say things like "could not" without an explanation. What does happen? Your question might work much better (you might get an answer) if you clarify what "could not" means.
Finally, try the following for diagnostic purposes. Go to the folder with the file (one of them) using the Windows Explorer. Go to the folder's properties and copy the path and paste that into a C# program. If you need to, you can create a test program in less than a minute. Then do the same for the file's name and put all that in a string constant with a backslash and all to make a complete path. Then try opening Windows Explorer with that. If that "works" then you know it is possible and you just need to figure out how to get the correct path into your program. If it does not work then you have significantly limited the direction you need to go to diagnose the problem.
VulpesPosted Sep 2, 2011, 9:25 AM
Otherwise, I'd wait for more answers.
HIA YongKuyPosted Sep 2, 2011, 9:22 AM
VulpesPosted Sep 2, 2011, 9:17 AM