Link:http://output.to/sideway/default.asp?qno=130300025 FolderExists / GetParentFolderName / GetFolder, FileSystemObject Object, ASP Server Component FileSystemObject ObjectOne function of FileSystemObject object is the manipulation of folders of the file system. FileSystemObject.FolderExistsFileSystemObject.FolderExists method is the method to check whether the specified folder specification exist or not. The FolderExists method returns True if the specified folder exists and the FolderExists method returns False if the specified folder does not exist. Syntax:FileSystemObjectName.FolderExists(folderspec) Or in VBScript. Imply folderflag = FileSystemObjectName.FolderExists(folderspec) Or in JScript. Imply folderflag = FileSystemObjectName.FolderExists(folderspec) Parameters:folderflag The parameter "folderflag" is the name assigned to the Boolean value returned by the method using the FileSystemObjectName.FolderExists Method. FileSystemObjectName The parameter "FileSystemObjectName" is used to specify the name of the instance of the FileSystemObject Object related to. folderspec The parameter "folderspec" is used to specify the folder to be checked. The value of parameter "folderspec" should be a complete path specification if the specified folder does not exist in the current folder. The path of the folderspec can be either a absolute or relative path. Return Values:Boolean value The method returns a Boolean value to indicate whether the specified folder exist or not related to the specified FileSystemObject Object. Remarks:FileSystemObjectName should always refer to a FileSystemObject Object. Examples:
FileSystemObject.GetParentFolderName MethodFileSystemObject.GetParentFolderName method is the method to get the name of the folder string from the specified path specification related to the specified FileSystemObject Object Syntax:FileSystemObjectName.GetParentFolderName(path) Or in VBScript. Imply pfoldername = FileSystemObjectName.GetParentFolderName(path) Or in JScript. Imply pfoldername = FileSystemObjectName.GetParentFolderName(path) Parameters:pfoldername The parameter "pfoldername" is the name assigned to the parent folder name string returned by the method using the FileSystemObjectName.GetParentFolderName Method. FileSystemObjectName The parameter "FileSystemObjectName" is used to specify the name of the instance of the FileSystemObject Object related to. Path The parameter "Path" is used to specify the path specification for the component of which the parent folder name to be returned. Return Values:path of parent folder string The method returns a string of the path of the parent folder name related to the specified FileSystemObject Object. The GetParentFolderName method returns the full path up to and including the name of the parent folder. The GetParentFolderName method returns a zero-length string ("") if there is no parent folder for the specified path. The GetPFolderName method only returns the full path of parent folder name string on the provided path string neither the conflict on the specified path nor the existence of the specified path will be checked. Remarks:FileSystemObjectName Method should always refer to a FileSystemObject Object. Examples:
|
Sideway BICK Blog 20/03 |