Do not use the control in BS mode, how to create a local file of the client

xiaoxiao2021-03-06  40

Creating a file Create an empty text file (sometimes called "text stream") has three ways. The first method is to use the CreateTextFile method. The following example demonstrates how to create text files in this method in VBScript:

DIM FSO, F1SET FSO = CreateObject ("scripting.filesystemObject") set f1 = fso.createtextfile ("c: /testfile.txt", true)

To use this method in JScript, use the following code:

VAR FSO, F1; FSO = New ActiveXObject ("scripting.filesystemObject"); f1 = fso.createtextfile ("c: //testfile.txt", true);

This only Windows platform support, you can search for your computer "jscript5.chm" or "vbscript5.chm" to find more information

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

New Post(0)