Javascript 网页中的C#应用程序参数
我有一个网页和一个桌面应用程序(C#)。点击网页中的点击链接打开c#应用程序 我们需要将数据从网页发送到C#应用程序,C#代码应该会收到它Javascript 网页中的C#应用程序参数,javascript,c#,web,Javascript,C#,Web,我有一个网页和一个桌面应用程序(C#)。点击网页中的点击链接打开c#应用程序 我们需要将数据从网页发送到C#应用程序,C#代码应该会收到它 <script type="text/javascript" language="javascript"> <i> function RunFile() { WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run("C:\hehe\ccslabsLo
<script type="text/javascript" language="javascript">
<i> function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("C:\hehe\ccslabsLogIn, 1, true");
}</i>
</script>
<input type="button" value="Run Notepad" onclick="RunFile();"/>
函数RunFile(){
WshShell=newActiveXObject(“WScript.Shell”);
Run(“C:\hehe\ccslabsLogIn,1,true”);
}
感谢您的帮助。WshShell.Run(“C:\hehe\ccslabsLogIn,1,true”);
WshShell.Run("C:\hehe\ccslabsLogIn <myString>, 1, true");
只需将
替换为要传递的参数即可
至于如何处理这个论点:
对于WPF:
嘿,欢迎来到SO!向我们展示迄今为止您编写的代码。没有人会从头开始为您编写代码。这是一个疑难解答网站,不是免费编码!