Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all

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

VB
Dim dir As DirectoryInfo
              dir = New DirectoryInfo(PDFDespPath)
              dir.Refresh()
Posted
Updated 28-Apr-14 21:18pm
v3
Comments
DamithSL 29-Apr-14 2:47am    
what exactly you want to do with DirectoryInfo?

1 solution

sample code:
VB
Dim fso As New FileSystemObject
Set fld = fso.GetFolder(PDFDespPath)
For Each fil In fld.Files
  Debug.Print fil.Name
Next
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900