vb如何执行下面的操作(搜索全部exe类型文件)
vb.net吧
全部回复
仅看楼主
level 7
暴牙归来 楼主
2016年03月31日 05点03分 1
level 7
暴牙归来 楼主
找来找去最后只找到下面这段代码
Private Sub Form_Load()
If Dir("12.exe") <> "" Then '文件检查
Else
End If
End Sub
2016年03月31日 05点03分 2
level 13
https://msdn.microsoft.com/zh-cn/library/windows/apps/br227255.aspx
这是效率很高的文件查询API说明
---贴吧极速版 For UWP
2016年03月31日 07点03分 3
level 13
如果上面的API没机会用,那么可以这样写(效率低)
For Each exe In From f In Directory.GetFiles("填写文件夹路径") Where f.ToLower.EndsWith(".exe")
'...处理exe文件
Next
---贴吧极速版 For UWP
2016年03月31日 09点03分 4
不导入命名空间[滑稽]
2016年03月31日 10点03分
回复 杰克冻人之怒 : 在项目级别引用里面点了 ---贴吧极速版 For UWP
2016年03月31日 15点03分
level 12
大小吧基本都死了 [冷]
2016年03月31日 10点03分 5
活着不好吗,下个ID见! [滑稽]
2016年03月31日 11点03分
@二笔青年🐷 成功帮lz钓出大吧[滑稽]
2016年03月31日 11点03分
level 10
' 不想电脑爆炸就别轻易使用全盘枚举
Dim exefiles As New List(Of String)
For Each drive As IO.DriveInfo In IO.DriveInfo.GetDrives
For Each fi As IO.FileInfo In drive.RootDirectory.GetFiles("*.exe", IO.SearchOption.AllDirectories)
exefiles.Add(fi.FullName)
Next
Next
[冷]你现在还在问这种问题,怎么写资源管理器。
2016年03月31日 11点03分 6
开个新线程或者加doevents应该会好些吧
2016年03月31日 11点03分
level 7
文件管理器我写过两次都失败了,主要是winform效率低
2016年04月01日 02点04分 7
1