Do not try to build pathnames concatenating strings. Use the Path.Combine method
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
Console.WriteLine(Path.Combine(path, "test"));
The Path class contains many useful static methods to handle strings that contains paths, filenames and extensions. This class is very useful to avoid many common errors and also allows to code for a better portability between operating systems ("" on win, "/" on Linux)
The Path class is defined in the namespace System.IO
.
You need to add using System.IO;
to your code
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…