If directory exists in a VB.NET code
I have the following code to create a directory, the task accepts a recordcount and every time the recordcount reaches the required number, say 1000 records, a new directory is created. If the task is run a second time it will add another 1000 records to the existing directories, I want it to skip these existing directories and create a new one. I've tried adding various ifexists, but mess it up all the time, any help would be appreciated Public Sub Main() Dim SourceDirectory As String = "E:\Data" Dim TargetDirectory As String = "E:\CN" Dim FileExtensionsToProcess As String = "CON*.pdf" Dim Fi
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.