Search a directory
Image-Pro Plus had a function called IpStSearchDir which allowed you to look if a file existed in a directory. Is there an equivalent in Premier?
0
Answers
-
Hi David,
You can use VB.NET function GetFiles for that. Here is the example:Public Sub GetListOfTifFiles() ' Only get TIF files Dim files As String() = System.IO.Directory.GetFiles("c:\", "*.tif") Debug.Print(String.Format("The number of TIF files is {0}.", files.Length)) Dim fn As String For Each fn In files Debug.Print(fn) Next End Sub
You can get more info here:
http://msdn.microsoft.com/en-us/library/wz42302f(v=vs.110).aspx
Regards,
Yuri0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions