WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

ASP FileSystemObject Object


The FileSystemObject object is utilized to get to the document framework on a server.



The FileSystemObject Object

The FileSystemObject object is utilized to get to the record framework on a server.

This article can control records, organizers, and catalog ways. It is too conceivable to recover record framework data with this object.

The following code makes a content record (c:\test.txt) and afterward keeps in touch with some content to the file:

<%
diminish fs,fname
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fname=fs.CreateTextFile("c:\test.txt",true)
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothing
%>

The FileSystemObject article's properties and strategies are portrayed beneath:

Properties

Property Description
Drives Returns an accumulation of all Drive protests on the computer

Methods

Method Description
BuildPath Appends a name to a current path
CopyFile Copies at least one documents from one area to another
CopyFolder Copies at least one organizers from one area to another
CreateFolder Creates another folder
CreateTextFile Creates a content record and returns a TextStream object that can be utilized to peruse from, or write to the file
DeleteFile Deletes at least one determined files
DeleteFolder Deletes at least one determined folders
DriveExists Checks if a predetermined drive exists
FileExists Checks if a predefined record exists
FolderExists Checks if a predefined organizer exists
GetAbsolutePathName Returns the total way from the base of the drive for the predetermined path
GetBaseName Returns the base name of a predetermined document or folder
GetDrive Returns a Drive object relating to the drive in a predefined path
GetDriveName Returns the drive name of a predefined path
GetExtensionName Returns the document augmentation name for the last segment in a determined path
GetFile Returns a File object for a predefined path
GetFileName Returns the document name or organizer name for the last part in a determined path
GetFolder Returns a Folder object for a predefined path
GetParentFolderName Returns the name of the parent envelope of the last segment in a predetermined path
GetSpecialFolder Returns the way to a portion of Windows' uncommon folders
GetTempName Returns an arbitrarily produced transitory record or folder
MoveFile Moves at least one records from one area to another
MoveFolder Moves at least one envelopes from one area to another
OpenTextFile Opens a record and returns a TextStream object that can be utilized to get to the file