[Solved] Use String.Format with local variables C# [closed]
[ad_1] Well, first, this is not the way to get the path to the desktop directory. Instead, just do this: Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) Unlike your solution, this will work with folder redirection, remote profiles, as well as with future (and past!) Windows versions. Not to mention that Environment.Username isn’t necessarily the correct folder name anyway 🙂 Second, … Read more