O
-OSD-
Guest
Hi
I have VB project lets call it "My1stProject" consisting on a VB Form application that uses the current user's application data folder as:
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData + "\MyFile.exe"
After usage, I would like to delete the folder and sub-folders but it seems like the files inside the folder are deleted but not the folder itself. This means I can still see the folder with name "My1stProject" under C:\Users\UserName\Roaming\My1stProject\MyFirstProject
I am using the following commands:
System.IO.File.Delete(My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData + "\MyFile.exe")
System.IO.Directory.Delete(My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData + "")
Any thoughts on how to remove the this folder with all sub-folders along with files etc.
Continue reading...
I have VB project lets call it "My1stProject" consisting on a VB Form application that uses the current user's application data folder as:
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData + "\MyFile.exe"
After usage, I would like to delete the folder and sub-folders but it seems like the files inside the folder are deleted but not the folder itself. This means I can still see the folder with name "My1stProject" under C:\Users\UserName\Roaming\My1stProject\MyFirstProject
I am using the following commands:
System.IO.File.Delete(My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData + "\MyFile.exe")
System.IO.Directory.Delete(My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData + "")
Any thoughts on how to remove the this folder with all sub-folders along with files etc.
Continue reading...