如何在vb6中使用directoryinfo [英] how to directoryinfo using in vb6

查看:143
本文介绍了如何在vb6中使用directoryinfo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有



如何转换此代码添加VB 6

目录信息不使用VB 6。所以如何使用目录信息。



  Dim  dir  As  DirectoryInfo 
dir = DirectoryInfo(PDFDespPath)
dir.Refresh()

解决方案

示例代码:

  Dim  fso  As   FileSystemObject 
设置 fld = fso.GetFolder(PDFDespPath)
对于 每个 fil fld.Files
Debug.Print fil.Name
下一步


Dear all

How to convert this code add VB 6
directory info not use VB 6 . so how to use Directory Info.

Dim dir As DirectoryInfo
              dir = New DirectoryInfo(PDFDespPath)
              dir.Refresh()

解决方案

sample code:

Dim fso As New FileSystemObject
Set fld = fso.GetFolder(PDFDespPath)
For Each fil In fld.Files
  Debug.Print fil.Name
Next


这篇关于如何在vb6中使用directoryinfo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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