exe在浏览器上运行并且无法正常运行

编程入门 行业动态 更新时间:2024-10-12 01:29:12
本文介绍了exe在浏览器上运行并且无法正常运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

HI朋友你怎么样? 当我从浏览器运行我的exe时它运行不正常。你只看到我的代码 当我从我的cmd运行exe时它完全显示我的浏览器和google打开但是当我在浏览器上运行时 exname:gau它没有正确显示 第一个注册表值 hkey_class_root HKEY_CLASSES_ROOT alert (默认)=URL:警报协议 URL Protocol = DefaultIcon (默认)=test5.exe,1 shell open 命令 (默认)=d:\ testing\test5.exe%1 现在看到我的c#代码 名称空间WindowsFormsApplication1 { 静态类程序 { static void Main(string [] args) { if(args.Count()> ; 0) { if(args [0] .ToString()==gau) { System.Diagnostics.Process.Start(www.google。 com); } } 其他 { MessageBox.Show(exe without para); } Console.ReadLine(); } } } 现在何时我从我的cmd运行exe它完全显示我的浏览器和google打开但是当我在浏览器上运行时 exname:gau它没有正确显示

HI Friends How are yoU? when i m running my exe from browser it is not working properly. you just see my code when i run exe from my cmd its perfectly show me browser and google open but when i run on browser by exname:"gau"its not show correctly first registry value hkey_class_root HKEY_CLASSES_ROOT alert (Default) = "URL:Alert Protocol" URL Protocol = "" DefaultIcon (Default) = "test5.exe,1" shell open command (Default) = "d:\ testing\test5.exe" "%1" now see my c# code namespace WindowsFormsApplication1 { static class Program { static void Main(string[] args) { if (args.Count() > 0) { if (args[0].ToString() == "gau") { System.Diagnostics.Process.Start(www.google); } } else { MessageBox.Show("exe without para""); } Console.ReadLine(); } } } now when i run exe from my cmd its perfectly show me browser and google open but when i run on browser by exname:"gau" its not show correctly

推荐答案

只需将您的注册表项与例如条目进行比较http。 和il:你的参赛作品名为 alert ,这将在网址中使用: alert:gau 好​​吧,为了更好的诊断,你应该在找不到预期参数时更改Messagebox的文本 - 显示参数的数量和他们的价值! 你会看到协议部分包含在参数中 - 你必须先删除它。 Just compare your registry entry with the entry for e.g. http. And voilà: your entry is called alert, and that's to be used in the URL: alert:gau Well, for better diagnostics, you ought to change the Messagebox's text when the expected parameter is not found - display the number of parameters and their values! You'll see then that the protocol part is included in the parameter - you have to remove that first.

更多推荐

exe在浏览器上运行并且无法正常运行

本文发布于:2023-11-28 18:31:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643491.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:正常运行   器上   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!