启动Surface应用程序并传递参数 [英] Starting Surface application and passing arguments
问题描述
我将一个Rfid阅读器连接到Microsoft Surface并使用WCF将包含我的rfid标签信息的字符串传递给Surface应用程序,到目前为止一直很好。
I connected an Rfid reader to Microsoft Surface and use WCF to pass a string with the information from my rfid tags to the Surface application, so far so good.
My目标是创建一种功能,无论何时将对象放置在rfid阅读器上,处理标签的表面应用程序都会自动启动并传递包含rfid信息的字符串。所以2个问题:1;我可以通过启动.exe在Surface启动器中打开
表面应用程序吗? 2,如何在打开时将参数传递给Surface应用程序?
My goal is to create the functionality that whenever an object is placed on the rfid reader, the surface application handling the tags is automatically started and is passed the string containing the rfid information. So 2 questions: 1; can I open an surface application within the Surface launcher just by starting the .exe? and 2, how do I pass an argument to the Surface application when opening?
非常感谢!
推荐答案
听起来你可能想创建一个
服务应用程序监视RFID阅读器的数据。
It sounds like you might want to create a service application which monitors the RFID reader for data.
该应用程序应该能够使用
<使用所需的参数启动Surface应用程序的exe a href ="http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx">
Process.Start 方法。如果shell正在运行,应用程序应该像在shell中点击一样启动。
That application should be able to just launch the Surface application's exe with the required arguments using the Process.Start method. If the shell is running, the app should launch just as if it was tapped in the shell.
这篇关于启动Surface应用程序并传递参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!