Folder exists in VB
-
How do I check if a folder already exists on the system without including any classes in my code? I dont know why the Try-Catch block does not work in my code. It gives compilation error that try is not excepted
-
How do I check if a folder already exists on the system without including any classes in my code? I dont know why the Try-Catch block does not work in my code. It gives compilation error that try is not excepted
if (System.IO.Folder.Exists(
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
How do I check if a folder already exists on the system without including any classes in my code? I dont know why the Try-Catch block does not work in my code. It gives compilation error that try is not excepted
First, what version of VB are you using? Second, what does you code look like?? Without that, it's really hard to tell you what you did wrong.
Dave Kreskowiak Microsoft MVP - Visual Basic
-
First, what version of VB are you using? Second, what does you code look like?? Without that, it's really hard to tell you what you did wrong.
Dave Kreskowiak Microsoft MVP - Visual Basic
Heah thanx, I got the thing working with the following piece of code Dim folderPath As String Dim fs folderPath = "C:\test" Set fs = CreateObject("Scripting.FileSystemObject") If (fs.folderexists(folderPath) <> True) Then MsgBox "Folder does not Exist" Else MsgBox "Folder Exists" End If