ASP file Upload, fso method Daquan

Source: Internet
Author: User

Method: BuildPath

Syntax: Object name. Bulidpath (path, filename)

Description: Adds a filename to the path and automatically adds a separator if necessary.

Method: CopyFile

Syntax: Object name. CopyFile (source path, target path [, overwrite])

Description: Copies one or more files from the source location to the destination location. The source location supports wildcard characters, and if the target path last character identifier The target path is a directory,

Whether overriding the parameter default value is ture and error if the target location file already exists and if the Overwrite property is set to False. (a description of whether or not the parameters are covered elsewhere)

Method: CopyFolder

Syntax: Object name. CopyFolder (source path, target path [, overwrite])

Description: Copy a folder from the source location to the destination location.

Method: CreateFolder

Syntax: Object name. CreateFolder (folder name)

Description: Create a folder.

Method: CreateTextFile

Syntax: Object name. CreateTextFile (filename [, overwrite [, Unicode encoding]])

Description: Creates the specified file and returns a TextStream object that can be used to read or write the created file.

Method: DeleteFile

Syntax: Object name. DeleteFile (file name [, delete read-only file])

Description: Deletes the specified file, you can use wildcards, and if you delete the read-only file parameter set to Ture, even the read-only property is deleted and the default value is False.

Method: DeleteFolder

Syntax: Object name. DeleteFolder (directory name [, delete read-only folder])

Description: Deletes the specified folder, you can use wildcards, and if you delete the read-only folder parameter setting to Ture, even the read-only property is deleted and the default value is False.

Method: Driveexists

Syntax: Object name. Driveexists (drive name)

Note: If the specified drive exists, return ture, otherwise flash will be returned.

Method: FileExists

Syntax: Object name. FileExists (filename)

Note: If the specified file exists, return ture, otherwise flash will be returned.

Method: FolderExists

Syntax: Object name. FolderExists (folder name)

Note: If the specified folder exists, return ture, otherwise flash will be returned.

Method: Getabsolutepathname

Syntax: Object name. Getabsolutepathname (PATH)

Description: Returns a complete and well-defined path from the provided road and supports wildcard characters.

Method: Getbasename

Syntax: Object name. Getbasename (PATH)

Description: Returns a string that contains the path, the base name of the last part, and no extension.

Method: Getdrive

Syntax: Object name. Getdrive (drive name)

Description: Returns the drive object that corresponds to the specified drive.

Method: GetDriveName

Syntax: Object name. GetDriveName (PATH)

Description: Returns a string containing the drive name in the specified path.

Method: Getextensionname

Syntax: Object name. Getextensionname (PATH)

Description: Returns a string containing the extension of the last component of the path.

Method: GetFile

Syntax: Object name. GetFile (file path)

Description: Returns a file object corresponding to a specified path.

Method: GetFileName

Syntax: Object name. GetFileName (file path)

Description: Returns the file name in the path.

Method: GetFolder

Syntax: Object name. GetFolder (Folder path)

Description: Returns a Folder object that corresponds to a certain directory in the specified path.

Method: Getparentfoldername

Syntax: Object name. Getparentfoldername (Folder path)

Description: Returns a string containing the last component of the specified path in your folder.

Method: GetSpecialFolder

Syntax: Object name. GetSpecialFolder (Parameters)

Description: Returns a Folder object that corresponds to a specific Windows folder. The allowable value for the parameter is 0 (windowsfolder) 1 (systemfolder) 2 (temporaryfolder).

Method: GetTempName

Syntax: Object name. GetTempName ()

Description: Returns the name of a randomly generated temporary file or folder that is used to perform operations that require temporary files or folders.

Method: MoveFile

Syntax: Object name. MoveFile (source path, target path)

Description: Moves one or more files from one location to another, supporting wildcard characters.

Method: MoveFolder

Syntax: Object name. MoveFolder (source path, target path)

Description: Moves one or more folders from one location to another, supporting wildcard characters.

Method: OpenTextFile

Syntax: Object name. OpenTextFile (file name [, access type [, create nonexistent file [, file read/write format]]]

Description: Opens a file and returns a TextStream object associated with it, the access type parameter can be ForReading (1 default), ForWriting (2), ForAppending (8), Creates a file that does not exist when the file parameter value is true, which defaults to False, and the file read/write format allows the value to be: 0 (default, open in ASCII format),-1 (open in Unicode format),-2 (open in system default format).

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.