使用VB Basic(完整系统扫描)进行冲撞,请帮助! [英] Recrusion with VB Basic (Full System Scan) PLEASE HELP!

查看:82
本文介绍了使用VB Basic(完整系统扫描)进行冲撞,请帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助保存我的项目……我对VB还是很陌生,但是在devry上了入门课程.我的程序是一个定义类型扫描仪...在我的表单中,我有3个按钮,一个文本框,一个由devexpress制作的组合框复选框和一个资源中的文本文件,程序使用该文本文件在所选目录中查找名称.如何使用文本文件作为将要扫描的名称的对冲,来扫描所有硬盘驱动器?我在网上寻找了很多想法,但是大多数(如果不是全部)只允许您按文件名而不是像病毒列表文本文件这样的资源进行扫描.

Please Help to save my project...... I am fairly new to VB but have taken a introduction course at devry. My program is a definition type scanner... In my form I have 3 buttons, a textbox, a combobox checkbox made by devexpress and a text file in my resources that the program uses to find names in the chosen directory. How can I scan all of my hard drive by using recrusion with the text file as the names it will scan for?. I have looked all over the net for ideas but most if not all only allow you to scan by file name and not with a resource such as my virus list text file.

推荐答案

设置一个函数,该函数扫描作为参数给出的目录.如果找到任何子目录,它将调用自身进行处理.允许为找到"或中止"返回类型只是为了快速停止处理.
这样,如果用户选择根目录控制器,它将处理整个HDD.
记住要允许访问失败例外!
Set up a function that scans a directory given as the parameter. If it finds any subdirectories, it calls itself to process them. Allow a return type for "found" or "abort" just to stop processing quickly.
That way, if the user selects the root director, it will process the whole HDD.
Remember to allow for access failure exceptions!


这篇关于使用VB Basic(完整系统扫描)进行冲撞,请帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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