DIAdem Help

Object: FileSystemObject

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

Object: FileSystemObject

You can use the FileSystemObject object to access the file system of your computer. To use the FileSystemObject object, you must create this object in DIAdem with the CreateObject("Scripting.FileSystemObject") command.

The following example creates a file and writes text into this file.

Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile= fso.CreateTextFile(ScriptWritePath & "\testfile.txt", True)
MyFile.WriteLine("This is the first line")
MyFile.Close

Properties

Drives

Log in to get a better experience