I want to use the FileSystem class and its functions like ( Dir,Chdir, rmdir......etc).
but how can I use it. give me an example.
Should I add it from the references . And if so; what is the DLL file of it.
thanks.....
Printable View
I want to use the FileSystem class and its functions like ( Dir,Chdir, rmdir......etc).
but how can I use it. give me an example.
Should I add it from the references . And if so; what is the DLL file of it.
thanks.....
It should be "Visual Basic for Applications" reference. It is usually
one of the four default references already added (MSVBVM60.dll).
Use the Object Browser too (F2).
They are quite easy to use. Use the intelisense or look them up in help.VB Code:
Option Explicit Private Sub Form_Load() If Dir(App.Path & "\DeleteMe.txt", vbArchive Or vbNormal Or vbHidden Or vbReadOnly) <> "" Then 'File exists End If End Sub
Hi
You can use give reference to the "scriptiong runtime library" for that and use filesystem object.....
or
and u want to use only this Dir,Chdir, rmdir u can directly
use this functions.......