I am writing a program that monitors a folder and lets you know when a file is created. I'm struggling to open the file when the user clicks ok. Please could I have advice on how to get the Process.Start()
to work, i'm trying to get the file location to load a text file from e.Fullpath
and open in Notepad.
private void fileSystemWatcher1_Changed(object sender, FileSystemEventArgs e)
{
DialogResult messageresult = MessageBox.Show("You have a Collection Form: " + e.Name);
if (messageresult == DialogResult.OK)
Process.Start("Notepad.exe", "e.FullPath");
}