Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to update DirectoryInfo and FileInfo collection

$
0
0

Hi All,

I am getting directoryinfo (name, path etc) and files present in that directory...

However,  BEFORE copying these directory and files from one location to another.. I want

remove particular directories and files from these array. Then I will pass this updated array for copying.

So, how can i update this array ??? Below is my code

' First getting root structure...
Dim dirDirectoryInfo As DirectoryInfo = New DirectoryInfo(strSourceVolumePath)
            Dim dirSubDirectories As DirectoryInfo() = dirDirectoryInfo.GetDirectories()

' then files present in root structure

Dim files As FileInfo() = dirDirectoryInfo.GetFiles()

So, i am using this above code... I need to use the same arrays to copy files

any help on this appreciated..

Regards,

Rohit


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>