I've managed to learn how to delete a directory.
Dim objDirectory AsNew DirectoryInfo("c:\data\WrongDate")
'If the directory WrongDate exists it gets deleted and recreated.
'This ensures files from the previous day are not in the directory.
If objDirectory.Exists Then
objDirectory.Delete()...
The following code works great the first time I run it.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FileNames(New DirectoryInfo("c:\data"))
End Sub
Sub FileNames(ByVal dir As DirectoryInfo)
Dim objFile As FileInfo...
I joined here yesterday and have been having trouble staying logged in. I try posting a reply and I get the screen saying I don't have permissions or that I need to log in. When I log in again it doesn't seem to accept my log in.
Is there a time out setting that I can change so that I stay...
This is my first post here and I am hoping I have posted in the right place.
I know almost nothing about VB.NET but am trying to test some code I developed based off of examples I found. The code is supposed to give me all the file names and create dates for the files in a specific directory...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.