The FileSystem object is based on Microsoft.VisualBasic.FileIO and includes the following methods:


FileSystem.CombinePath

FileSystem.CopyDirectory

FileSystem.CopyDirectory2

FileSystem.CopyFile

FileSystem.CopyFile2

FileSystem.CreateDirectory

FileSystem.DeleteDirectory

FileSystem.DeleteDirectory2

FileSystem.DeleteFile

FileSystem.DeleteFile2

FileSystem.DirectoryExists

FileSystem.FileExists

FileSystem.FindInFiles

FileSystem.GetDirectories

FileSystem.GetDirectories2

FileSystem.GetDirectoryInfo

FileSystem.GetDriveInfo

FileSystem.GetFileInfo

FileSystem.GetFiles

FileSystem.GetFiles2

FileSystem.GetName

FileSystem.GetParentPath

FileSystem.GetTempFileName

FileSystem.MoveDirectory

FileSystem.MoveDirectory2

FileSystem.MoveFile

FileSystem.MoveFile2

FileSystem.OpenTextFileReader

FileSystem.OpenTextFileWriter

FileSystem.ReadAllBytes

FileSystem.ReadAllText

FileSystem.RenameDirectory

FileSystem.RenameFile

FileSystem.WriteAllBytes

FileSystem.WriteAllText


Note: the FileSystem object identifier is optional and can be omitted, for example:


Sub Main()

MsgBox CombinePath("C:\Dir1\Dir2\Dir3", "..\Dir4\Dir5\File.txt")

End Sub