查找C:\WINNT\SYSTEM32下所有的dll文件,并把指定大小的文件显示出来 查找C:\WINNT\SYSTEM32下所有的dll文件,并把指定大小的文件显示出来,比如说我指定将123字节的dll文件显示再text1.text中,请问如何做呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 '将dir过滤的结果保存在c:\Alldll.txt中,然后分析并找出指定大小的文件列出来Shell ("c:\windows/system32\cmd.exe /c dir c:\windows\system32\*.dll >c:\Alldll.txt"), vbHide Private Sub Command1_Click() Dim SysPath As String Dim myFile As String Dim lngFile As Long SysPath = VBA.Environ("windir") & "\system32\" myFile = Dir(SysPath & "\*.dll") While myFile <> "" lngFile = FileLen(SysPath & myFile) / 1024 '如果要的是字节长度就不用除1024 If lngFile <= 123 Then Debug.Print myFile & " " & lngFile myFile = Dir Wend End Sub 关于timer的问题 控件注册问题----急急!!!!!!!! 请问:如何给 active report 赋总页数(即打印的总页数) C里面&&VB下怎么表示? 同样的语句,为什么为出现附加字符串?(vb put语句) 回调函数和菜单的问题 双显问题 各位vb程序员有多少是系统的学过数据结构和离散数学的? 请问VB6.0在哪里下阿???还有什么地方有关于VB的电子书籍???谢谢~~(给分) 请帮我介绍一本学习vb 的书 VB访问windows网络域的问题,高分! 求一试管控件, 里面的药水高度可随时控制
Shell ("c:\windows/system32\cmd.exe /c dir c:\windows\system32\*.dll >c:\Alldll.txt"), vbHide
Private Sub Command1_Click()
Dim SysPath As String
Dim myFile As String
Dim lngFile As Long
SysPath = VBA.Environ("windir") & "\system32\"
myFile = Dir(SysPath & "\*.dll")
While myFile <> ""
lngFile = FileLen(SysPath & myFile) / 1024 '如果要的是字节长度就不用除1024
If lngFile <= 123 Then Debug.Print myFile & " " & lngFile
myFile = Dir
Wend
End Sub