如何垃圾exe文件和可行的exe文件之间的过滤 [英] How to filter between junk exe files and workable exe files

查看:152
本文介绍了如何垃圾exe文件和可行的exe文件之间的过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在把所有的exe文件,但事情是x.x代表其给我所有的EXE文件,现在我有一个运行所需的应用程序和所有的垃圾可执行文件的可执行文件之间进行过滤。
就像在Internet Explorer文件夹,我有

i got all the exe files now but the thing is x.x its giving me all the exes and now i have to filter between executable which run the required app and all junk executables. like in internet explorer folder i have

C:\Program Files\Internet Explorer\ieinstal.exe

C:\Program Files\Internet Explorer\ieinstal.exe

C:\Program Files\Internet Explorer\ielowutil.exe

C:\Program Files\Internet Explorer\ielowutil.exe

C:\Program Files\Internet Explorer\iexplorer。 exe文件

C:\Program Files\Internet Explorer\iexplorer.exe

但我希望JST IEXPLORER.EXE文件,并为我所有其他的都是垃圾,有没有办法在两者之间进行过滤?

but i jst want iexplorer.exe file and for me all others are junk is there any way to filter between these?

      List path = new List();
            List realPaths = new List();



推荐答案

没有,但真的做你想做什么不完美的方式;所有可执行文件基本上是平等​​。

No, there's really no perfect way to do what you're trying to do; all executables are basically "created equal."

你到底希望实现,为什么?

What exactly do you hope to achieve, and why?

也许你的目标是只显示可执行文件,用户很可能要运行?如果这是你的目标,你的问题可能是:我怎样才能知道哪些可执行用户已使用过或有可能直接调用的未来?

Perhaps your goal is to show only executables that the user is likely to want to run? If that were your goal, your question could be: "How can I tell which executables the user has used before or is likely to directly invoke in the future?"

如果是这样的问题,那么你可以拿出的启发式的方式来尝试解决问题。你的算法可以做的事情就像看桌面上的快捷方式和开始菜单,以及在的 AppPaths 的注册程序基于注册表的列表,类似位置,试图推断出哪些可执行文件都或多或少可能被执行。它不会是完美的,当然,但有时一个不完美的做法是聊胜于无。

If that was the question, then you could come up with a heuristic approach to try to solve the problem. Your algorithm could do things like look at the shortcuts on the desktop and Start menu, as well as the registry-based list of programs registered in AppPaths and similar locations to try to infer which executables are more or less likely to be run. It wouldn't be perfect, of course, but sometimes an imperfect approach is better than nothing.

这篇关于如何垃圾exe文件和可行的exe文件之间的过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆