我将如何输入要替换的字符串
(Environment.SpecialFolder.ApplicationData) 作为 .ApplicationData 部分需要根据传递给它的变量进行更改。
string specialFolder = ("Environment.SpecialFolder." + specialLocation);
specialLocation = "this will change depending on path location";
path = Path.Combine(Environment.GetFolderPath("specialFolder"),
@""+backupPath);
希望我已经说得够清楚了。
谢谢