Quote:System.IO.FileNotFoundException: Could not find file 'C:\TestFolder\test.txt'. File name
public void fnEnvironment() { try { FileInfo someFile = new FileInfo(@"C:\TestFolder\test.txt"); someFile.CopyTo(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\test.txt"); lblMsg.Text = "Has text.txt has been copied to the Desktop"; } catch (Exception Ex) { lblError.Text = Ex.ToString(); lblError.ForeColor = Color.Red; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)