开发者

System.Diagnostics.Process in F# - how to use it?

开发者 https://www.devze.com 2023-01-14 23:47 出处:网络
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

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

精彩评论

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