Solved

Loop directories at a specific dir

Posted on 2013-11-07
2
238 Views
Last Modified: 2013-11-07
I need to loop through  a directory called "SENT" and its directories below (number only).  However, I want to start looping at 78064 and after. What should I do?

78061
78062
78063
78064  <<< starting here
78065

etct
0
Comment
Question by:VBdotnet2005
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Jesus Rodriguez earned 500 total points
ID: 39630912
Dim ListOfDirectories As String() = System.IO.Directory.GetDirectories("C:\SENT")
        For Each StrDir As String In ListOfDirectories
            If CInt(StrDir) >= 78064 Then
                'Do  your process
                Dim ListOfFiles As String() = System.IO.Directory.GetFiles(StrDir)
                For Each File As String In ListOfFiles
                    'Do What you want with your file

                Next
            Else
            End If
        Next
0
 

Author Closing Comment

by:VBdotnet2005
ID: 39630919
thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get sourcecode path 14 47
Set custom font WPF 2 21
Stop Git from being my repository 1 26
VB.net VSTO Excel Ribbon error 4 14
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question