Jul 28, 2011
The sub below will show all of the directories contain with a directory
View 4 Replies
Private Sub showDirectories(ByVal rootDirectory As String)
Dim rootDirectories() As String = IO.Directory.GetDirectories(rootDirectory)
When I run this code I can use any directory as the root directory except My Documents.When I use the directory path with My Documents, as well as finding all of the folders contained in My Documents, it finds three extra: My Music, My Pictures and My Videos. Those three folders do not exist at all in My Documents. I have checked hidden files and folder and they are definately not there yet the showDirectories() sub says that they are.The exact error is: Access to the path 'C:UsersMichaelDocumentsMy Music' is denied.It's dened because the folder doesn't exist. I have checked myself using Windows Explorer!Despite this, when I type 'file:///C:/Users/Michael/Documents/' in the address bar of Google Chrome, it shows all of the files and folders in My Documents and, guess what, it shows the folders My Music, My Pictures and My Videos. But Windows Explorer doesn't show these! The strange thing is, for each of the folders, the last Date Modified was 23/01/2011 13:42:49 exactly. Each of the folders was last modified at that exact second simultaneously!I have 3 "ghost" folders "haunting" my My Documents. Is there any programs out there that perform "exorcisms" cause I am seriously freaked out!Perhaps this is the wrong place to post this. When I started writing this thread, it was about Visual Basic but now I realise it has nothing to do with programming at all.