ASP server's FSO settings

xiaoxiao2021-03-19  206

I don't know how to get it, an ASP whole station system on my web server cannot run normally. Observe Discovery Tips: Due to the server does not support FSO text files cannot be used. What is the FSO text file? Find the following information over Google Search? :

In ASP, FSO means File System Object, ie file system objects.

FSO Model Object Drive Object: Drive Objects Supplement Disk or Network Drive FileSystemObject Object: File System Objects File System Folder Object: Folder Objects All properties for access folders TextStream Object: Text stream objects Take the contents of the file You can use anything above to do anything on your computer, as well as damage activities ;-( so, please use fso. In a web environment, storage information is very important, such as user information, log files, etc. Wait. FSO provides a powerful and simple way to save data efficiently. In this article, the FileSystemObject and TextStream objects are discussed. Fso provides support by Microsoft, for non-Windows systems, probably can no longer use ASP. In order to use Fso is to perform all work, first create an object, the code is like this:

<% Set fso = server.createObject ("scripting.filesystemObject")%>

This creates FSO and imparts the Variable FSO, then you can use the familiar Object.Method syntax to perform the operation of the file system [View the Visual Basic Document, get more knowledge about objects and object wizard programming). Here, we can use fso.method or fso.property, which will be seen in the example below.

The FSO model is located in the script runtime DLL file provided by Microsoft, which is Scrrun.dll. You can reference this DLL file in any application, such as MS Access, Word. That is, not only

Limits to Applying it in ASP.

Here is a list of brief FSO methods:

FSO method CopyFile Copy one or more files to the new path CreateTextFile Create a file and return a TextStream object deletefile Delete a file OpenTextFile Open the file and returns the TextStream object to read or add

If you want to know the full FSO method and properties, please check Microsoft MSDN.

How to set up the FSO text file reading?

转载请注明原文地址:https://www.9cbs.com/read-130245.html

New Post(0)