Since I am working on a C# .NET application in which a portion imitates Windows Run command, I am doing some experiments with it. I have a folder exactly named as %userdomain% in ....Appdata\Local\Temp folder and I want to access through Windows Run command, but it gives me error as Windows cannot find ....Local\Temp\ComputerName. Is there any way I could access this folder through Run?
However in C# .NET, using System.Diagnostics.Process, I am able to open the folder concerned, but as '%' is a valid character for folder and file names, it is hard to determine that the path given by user contains a variable name or a folder name. And so it would not be wise to retrieve the value from Environment.GetEnvironmentVariable(""); all of the time. What would be the best way to differentiate?
Any suggestion?