System.Diagnostics.Process in F# - how to use it?
Can someone give me a very si开发者_如何转开发mple example of how one would, say, write an F# program to open Notepad? I keep running into a "File Not Found" exception, but there doesn't seem to be any reason for it - the StartInfo property is correctly set.
I didn't set the startinfo properties, but not specifying a path to notepad should work:
// Learn more about F# at http://fsharp.net
System.Diagnostics.Process.Start("Notepad.exe", "NoFile.txt");
精彩评论