Link:http://output.to/sideway/default.asp?qno=180500024 Script, Scripting Language, VBScript elements, Server-Side VBScript Object Element FileSystemObject Method VBScript Methods of FSO ObjectSome typical predefined Elements are.
GetAbsolutePathName Methodlast updated 12/14/2017is to return a complete and unambiguous absolute path name from given pathspec path. Syntaxfsoobjvar.GetAbsolutePathName(pathspec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetAbsolutePathNameRequired Keyword. to specify the Method of associated Object.folderspecRequired. Path specification to change to a complete and unambiguous path.Remarks
Applied toFileSystemObject ObjectGetBaseName Methodlast updated 12/14/2017is to return a string containing the base name of the last component, less any file extension, in given path. Syntaxfsoobjvar.GetBaseName(path) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetBaseNameRequired Keyword. to specify the Method of associated Object.pathRequired. The path specification for the component whose base name is to be returned.Remarks
Applied toFileSystemObject ObjectGetDrive Methodlast updated 12/14/2017is to return a Drive object according to the drive component of the given drivespec. Syntaxfsoobjvar.GetDrive ( drivespec ) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetDriveRequired Keyword. to specify the Method of associated Object.drivespecRequired. The drivespec argument can be a drive letter (c), a drive letter with a colon appended (c:), a drive letter with a colon and path separator appended (c:\), or any network share specification (\\computer2\share1).Remarks
Applied toFileSystemObject ObjectGetDriveName Methodlast updated 12/14/2017is to return a string containing the drive name of drive component of the given path. Syntaxfsoobjvar.GetDriveName(path) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetDriveNameRequired Keyword. to specify the Method of associated Object.pathRequired. The path specification for the component whose drive name is to be returned.Remarks
Applied toFileSystemObject ObjectGetExtensionName Methodlast updated 12/14/2017is to return the file extension of the last file component of the given path Syntaxfsoobjvar.GetExtensionName(path) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetExtensionNameRequired Keyword. to specify the Method of associated Object.pathRequired. The path of the component whose extension is to be returned.Remarks
Applied toFileSystemObject ObjectGetFile Methodlast updated 12/14/2017is to return a File Object according to the file of given filespec path. Syntaxfsoobjvar.GetFile(filespec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetFileRequired Keyword. to specify the Method of associated Object.filespecRequired. The filespec is the path (absolute or relative) to a specific file.Remarks
Applied toFileSystemObject ObjectGetFileVersion Methodlast updated 12/14/2017is to return the version number of a file component according to the last component of given pathspec path. Syntaxfsoobjvar.GetFileVersion(pathspec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetFileVersionRequired Keyword. to specify the Method of associated Object.pathspecRequired. The path (absolute or relative) to a specific file.Remarks
Applied toFileSystemObject ObjectGetFileName Methodlast updated 12/14/2017is to return the file namer of a file component according to the last component of given pathspec path. Syntaxfsoobjvar.GetFileName(pathspec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetFileNameRequired Keyword. to specify the Method of associated Object.pathspecRequired. The path (absolute or relative) to a specific file.Remarks
Applied toFileSystemObject ObjectGetFolder Methodlast updated 12/14/2017is to return a Folder object according to the given folderspec path. Syntaxfsoobjvar.GetFolder(folderspec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetFolderRequired Keyword. to specify the Method of associated Object.folderspecRequired. The folderspec is the path (absolute or relative) to a specific folder.Remarks
Applied toFileSystemObject ObjectGetParentFolderName Methodlast updated 12/14/2017is to return a string containing the name of the parent folder of the last component in a given path. Syntaxfsoobjvar.GetParentFolderName(path) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetParentFolderNameRequired Keyword. to specify the Method of associated Object.pathRequired. The path specification for the component whose parent folder name is to be returned.Remarks
Applied toFileSystemObject ObjectGetSpecialFolder Methodlast updated 12/14/2017is to return a special Folder Object according to the given folderspec. Syntaxfsoobjvar.GetSpecialFolder(folderspec) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetSpecialFolderRequired Keyword. to specify the Method of associated Object.folderspecRequired Setting. The name of the special folder to be returned. Can be any of the constants shown in the Settings section.Settingsfolderspec argument: ConstantValueDescriptionWindowsFolder0The Windows folder contains files installed by the Windows operating system.SystemFolder1The System folder contains libraries, fonts, and device drivers.TemporaryFolder2The Temp folder is used to store temporary files. Its path is found in the TMP environment variable. Applied toFileSystemObject ObjectGetStandardStream Methodlast updated 12/14/2017is to return a standard TextStream Object according to the given standardStreamType setting and specified optional unicode setting. Syntaxfsoobjvar.GetStandardStream(standardStreamType [, unicode ]) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetStandardStreamRequired Keyword. to specify the Method of associated Object.standardStreamTypeRequired. Can be one of three constants: StdErr, StdIn, or StdOut.unicodeOptional. Boolean value that indicates whether the file is created as a Unicode or ASCII file. The value is true if the file is created as a Unicode file, false if it is created as an ASCII file. If omitted, an ASCII file is assumed.SettingsstandardStreamType argument: ConstantValueDescriptionStdIn0Returns a TextStream object corresponding to the standard input stream.StdOut1Returns a TextStream object corresponding to the standard output stream.StdErr2Returns a TextStream object corresponding to the standard error stream. Applied toFileSystemObject ObjectGetTempName Methodlast updated 12/14/2017is to generate and return a randomly generated temporary file or folder name for performing operations that require a temporary file or folder. Syntaxfsoobjvar.GetTempName ( ) ArgumentfsoobjvarRequired. to specify the associated Object instance reference.GetTempNameRequired Keyword. to specify the Method of associated Object.Remarks
Applied toFileSystemObject ObjectOptional Element, Content Occurrence Character, Choice or sequence:(…)+one or more(…)*zero or more(…)?zero or one times(…)exactly once[…]optional(… | …)or( … & …)and( …, … )sequence⋯=⋯assign to⋯.⋯dot notation(+)include(-)exclude
|
Sideway BICK Blog 24/05 |