Mat*_*att 3 .net c# process.start winforms
我正在编写一个监视文件夹的程序,让您知道何时创建文件.当用户点击"确定"时,我很难打开文件.请问我有关于如何开始Process.Start()工作的建议,我正在尝试获取文件位置以从e.Fullpath记事本中加载文本文件并在其中打开.
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");
}
Run Code Online (Sandbox Code Playgroud)