File.Copy(@"C:\Users\Techhubcoding\AppData\Local\test.txt", @"C:\Users\Techhubcoding\Desktop\test\test.txt");
Environment.ExpandEnvironmentVariables
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
string userPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); string destFilename = Path.Combine(userPath, "test.txt"); File.Copy("test.txt", destFilename);
C:\Users\Techhubcoding
C:\Users\PaulG
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)