开发者

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜