vb.net - Returning subfolder names within dated folder -


i'm trying pull list of directories sit inside dated folder structure. within each dated folder number of 'jobs' want return name of 1st level of folders

the below code gets right level of folder detail result displays full path

 each dir string in system.io.directory.getdirectories("c:\working")         dim dirinfo new system.io.directoryinfo(dir)         each sdir string in system.io.directory.getdirectories(dirinfo.tostring)             dim sdirinfo new system.io.directoryinfo(sdir)             chkimpexp.items.add(sdir)         next     next 

this display following

folder structure

however display directory name right of 3rd backslash (westdale - 28023 - cash+spirit example)

hopefully enough information.

many thanks

' renamed dir d dir() function in microsoft.visualbasic each d in system.io.directory.getdirectories("c:\working")     each sdir in system.io.directory.getdirectories(d)         dim di = new directoryinfo(sdir)         chkimpexp.items.add(di.name())     next next 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -