



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An overview of the filesystemobject (fso) in vbscript, which serves as the access point for a hierarchy of objects used to manipulate drives, folders, and files. The main fso object and its sub-objects: filesystemobject, drive, file, folders, textstream, and their respective methods and properties. It also includes examples of creating folders and files, getting folder and file information, and copying and moving folders.
Typology: Study notes
1 / 27
This page cannot be seen from the preview
Don't miss anything!
3. File (^) (object) Contains methods and properties that allow us to create, delete or move a file. Also allows us to query the system for a file name, path and various other properties. 4. Files (^) (Collection) provides a list of all files contained with in a folder.
5. Folder (^) (object) Contains methods and properties that allow you to create, delete or move folders. Also allows us to query the system for folder names, paths and various other properties. 6. Folders (^) (Collection) provides a list of all the folders within a folder.
Dim FSO, FolderObj Set FSO= CreateObject(“scripting.FileSystemObject”) Set FolderObj=FSO.CreateFolder(“D:\ITA”);
FSO.CopyFolder source, destination dim FSO set FSO=CreateObject("Scripting.FileSystemObject") If FSO.FolderExists("c:\sourcefolder\website") Then FSO.CopyFolder "c:\sourcefolder\website", "c:
destfolder\” End If
FSO.MoveFolder source, destination
dim FSO, a Set FSO =CreateObject("Scripting.FileSystemObject") a = filesys.GetDriveName(“d:\ITA\test.txt”) ‘a=“d:”
FSO.GetExtensionName(path)