简体   繁体   English

我怎么可以转换使用StandardInput和StandardOutput在.NET Compact Framework的C#应用​​程序?

[英]How can I convert a C# application that uses StandardInput and StandardOutput in .NET Compact Framework?

I have an application that uses the Process class, StandardInput, and StandardOutput to communicate with an external executable. 我有一个使用Process类,StandardInput和StandardOutput与外部可执行文件进行通信的应用程序。 I am using this to pass strings back and forth, and it works well in my Windows application. 我正在使用它来回传递字符串,它在Windows应用程序中运行良好。

On the mobile device, I do not see StandardInput or StandardOutput in the Process class. 在移动设备上,我在Process类中看不到StandardInput或StandardOutput。 Is there an easy way to replicate this functionality on the Mobile? 有没有简单的方法可以在Mobile上复制此功能?

Not much of an answer but under certain very limited scenarios you could use command line arguments. 答案不多,但是在某些非常有限的情况下,您可以使用命令行参数。 They can be retrieved using. 可以使用检索它们。

Environment.GetCommandLineArgs()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在C#中重定向流程StandardInput,StandardOutput和StandardError - Redirecting Process StandardInput, StandardOutput and StandardError in c# FFmpeg冻结的C#处理StandardInput和StandardOutput - C# Process StandardInput and StandardOutput with FFmpeg freezes C#提供命令以StandardInput处理并以StandardOutput读取输出 - C# Supplying Commands to Process with StandardInput and Reading Output with StandardOutput 如何使用 C# .Net Compact Framework 打开图像并编辑图像。 - How can I open an image and edit the image with C# .Net Compact Framework. 如何在C#中隐藏沙漏图标(.NET Compact Framework) - How to hide the hourglass icon in C# (.NET Compact Framework) 如何在 C# Compact Framework 中获取 exe 应用程序名称和版本 - How to get exe application name and version in C# Compact Framework 如何在.Net Compact Framework C#中改进UI? - How to improve UI in .Net Compact Framework, C#? 如何在.NET Compact Framework(C#)中封送“ Cstring”的类型? - How to marshal the type of “Cstring” in .NET Compact Framework(C#)? 将BMP转换为PCX C#Compact Framework - Convert BMP to PCX C# Compact Framework 模块化C#Compact Framework 2.0应用程序 - Modularising a C# Compact Framework 2.0 Application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM