從這裏開始 - Embedding F# interactive - 我一直試圖在我的應用程序中嵌入FSI。 但是,我從StandardOutput獲取了奇怪的東西。 例如,在標準的FSI,如果我把這個: let a = 3;;
我得到這個回: [empty line here]
val a : int = 3
[empty line here]
> |
(與代表輸入位置管) 但是,
獲取二進制數據,我開始用代碼與下圖類似的過程: // some of the flags are not needed
process.StartInfo.CreateNoWindow = true;
process.StartInfo.ErrorDialog = false;
process.StartInfo.UseShellExecute = false;
process.Start
我正在讀取使用進程啓動並讀取stdError,stdOutout並使用stdInput發送命令的java應用程序的輸出。以下是相關代碼: int mem = Properties.Settings.Default.mem_max;
string locale = Properties.Settings.Default.location;
Process bukkit_jv
當我調用比較使用FC的兩個文件的批處理腳本時重定向standardOutput時,與不重定向輸出時相比,我獲得了不同的輸出。哪裏不對? 這段代碼將打印 「0」 到我的登錄窗口: Process test = new Process();
test.StartInfo.FileName = "cmd.exe";
test.StartInfo.Arguments = @"/c fc /b /a C