DIAdem Help

Method: GetFile for FileSystemObject

  • Updated2024-09-12
  • 1 minute(s) read

Method: GetFile for FileSystemObject

Returns a file object that is associated with a path.

Set oFile = Object.GetFile(FilePath)
ObjectFileSystemObject
Object with this method
FilePathString
Specifies the path of the file.
oFileFile
Returned object

The following example returns a file object:

Function GetFileObject(sFile)
  Dim fso
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set GetFileObject = fso.GetFile(sFile)
End Function

Log in to get a better experience