Introduction to FileSystemObject and Scripting Run-time library references

Source: Internet
Author: User
Tags object file system object model client access
filesystemobject| Reference

FileSystemObject (FSO) object mode, which allows you to work with folders and files on a large number of properties, methods, and events, using more familiar Object.Method syntax.

Use this object-based tool and:

  • HTML to create a Web page
  • Windows Scripting Host to create batch files for Microsoft windows
  • Script control provides the ability to edit scripts for applications developed in other languages

Because of the important security implications of using the FSO on the client side, providing potentially unwelcome access to the client's local file system, it is assumed that this document uses the FSO object model to create scripts that are executed by the server-side Internet Web page. Because the server side is used, the Internet Explorer default security setting does not allow clients to use the FileSystemObject object. Overwriting those defaults can cause unwanted access to their file systems on the local computer, resulting in complete damage to file system integrity, while causing data loss or worse.

The FSO object mode enables server-side applications to create, alter, move, and delete folders, or to detect whether a particular folder exists, and, if so, to find information about the folder, such as name, date created or last modified, and so on.

The FSO object pattern also makes file processing easy. When working with files, the primary goal is to store the data in a valid space and resource in an accessible format. This requires the ability to create files, insert and change data, and output (read) data. Because storing data in a database, such as Access or a SQL server, adds a lot of overhead to your application, storing the data in a binary or text file can be the most effective solution. You may not want this overhead, or your data access requirements may not require all the extra functionality associated with a fully functional database.

The FSO object pattern, contained in the Scripting type library (Scrrun.dll), supports the creation and manipulation of text files by TextStream objects. Although the creation or operation of binaries is not yet supported, it is planned to support binary files in the future.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.