Title: Alpha Rex
1(No Transcript)
2H2K INFOSYS PROVIDES WORLD CLASS SERVICES IN
3Job Oriented QTP/UFT Training
- Working with Files using FSO
- Scripting allows you to process drives, folders,
and files using the FileSystemObject (FSO) object
model - The FileSystemObject object model allows you to
use the familiar object.method syntax with a rich
set of properties, methods, and events to process
folders and files.
4Job Oriented QTP/UFT Training
- Object/Collection Description FileSystemObject
Main object, Contains methods and properties that
allow you to create, delete, gain information
about, and generally manipulate drives, folders,
and files. Many of the methods associated with
this object duplicate those in other FSO objects
they are provided for convenience.DriveIt is
an Object, Contains methods and properties that
allow you to gather information about a drive
attached to the system, such as its share name
and how much room is available. Note that a
"drive" isn't necessarily a hard disk, but can be
a CD-ROM drive, a RAM disk, and so forth. A drive
doesn't need to be physically attached to the
system it can be also be logically connected
through a network.DrivesCollection, Provides a
list of the drives attached to the system, either
physically or logically. The Drives collection
includes all drives, regardless of type.
Removable-media drives need not have media
inserted for them to appear in this collection.
5Job Oriented QTP/UFT Training
- FileObject, Contains methods and properties
that allow you to create, delete, or move a file.
Also allows you to query the system for a file
name, path, and various other properties.FilesC
ollection. Provides a list of all files contained
within a folder.FolderObject. Contains methods
and properties that allow you to create, delete,
or move folders. Also allows you to query the
system for folder names, paths, and various other
properties.FoldersCollection. Provides a list
of all the folders within a Folder.TextStreamOb
ject. Allows you to read and write text files.
6(No Transcript)
7DISCLAIMER
H2K Infosys, LLC (hereinafter H2K) acknowledges
the proprietary rights of the trademarks and
product names of other companies mentioned in any
of the training material including but not
limited to the handouts, written material,
videos, power point presentations, etc. All such
training materials are provided to H2K students
for learning purposes only. H2K students shall
not use such materials for their private gain nor
can they sell any such materials to a third
party. Some of the examples provided in any such
training materials may not be owned by H2K and as
such H2K does not claim any proprietary rights
for the same. H2K does not guarantee nor is it
responsible for such products and projects. H2K
acknowledges that any such information or product
that has been lawfully received from any third
party source is free from restriction and without
any breach or violation of law whatsoever.