Object: FileSystemObject
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Objects > Object: FileSystemObject
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
Methods
BuildPath | CopyFile | CopyFolder | CreateFolder | CreateTextFile | DeleteFile | DeleteFolder | DriveExists | FileExists | FolderExists | GetAbsolutePathName | GetBaseName | GetDrive | GetDriveName | GetExtensionName | GetFile | GetFileName | GetFileVersion | GetFolder | GetParentFolderName | GetSpecialFolder | GetStandardStream | GetTempName | MoveFile | MoveFolder | OpenTextFile