I’ve been using System.Diagnostics.Process.Start(). For example:
string target = @"c:\te=mp\test";
System.Diagnostics.Process.Start("explorer.exe", target)
The target variable is actually supplied more dynamically and does on occasion include an “=” sign which is a legal character in filenames and directories.
The issue is that this triggers an error indicating, “The Path ‘mp\test‘ does not exist or is not a directory.” It seems that the path argument is cutoff to the left of the “=” character.
Is there a way to escape the “=” characteror otherwise work-around this issue?
try wrapping it in quotes, e.g.