FileSystemObject : FileSystemObject « MS JScript « JavaScript Tutorial

Home
JavaScript Tutorial
1.Language Basics
2.Operators
3.Statement
4.Development
5.Number Data Type
6.String
7.Function
8.Global
9.Math
10.Form
11.Array
12.Date
13.Dialogs
14.Document
15.Event
16.Location
17.Navigator
18.Screen
19.Window
20.History
21.HTML Tags
22.Style
23.DOM Node
24.Drag Drop
25.Object Oriented
26.Regular Expressions
27.XML
28.GUI Components
29.Dojo toolkit
30.jQuery
31.Animation
32.MS JScript
JavaScript Tutorial » MS JScript » FileSystemObject 
32.11.1.FileSystemObject

The FileSystemObject object provides access to the computer's file system.

Properties and Methods of the FileSystemObject Object

Property/MethodDescription
BuildPath()Appends information to a file path
CopyFile()Copies a file from one location to another
CopyFolder()Copies a folder from one location to another
CreateFolder()Creates a new folder object
CreateTextfile()Creates a new text file object
DeleteFile()Removes a file
DeleteFolder()Removes a folder object
DriveExists()Determines whether a drive exists
DrivesReturns a Drives collection, containing all the available drive objects
FileExists()Determines whether a file exists
FolderExists()Determines whether a folder exists
GetAbsolutePathName()Returns the absolute pathname for a file
GetBaseName()Gets the base name of the last component
GetDrive()Gets the drive letter for a file
GetDriveName()Gets the drive name on which a file resides
ExtensionName()Returns the extension for a file
GetFile()Gets the file object
GetFileName()Gets the name of a file
GetFolder()Gets the folder name that contains a file
GetParentFolderName()Gets the parent folder's name
GetSpecialFolder()Gets the folder names for special folders
GetTempName()Creates a randomly generated temporary file
MoveFile()Moves a file from one location to another
MoveFolder()Moves a folder and its contents from one location to another
OpentextFile()Opens a text file stream to a file


<html>
    <body>
    <script language="JScript">
    <!--
       var myObject;
       myObject = new ActiveXObject("Scripting.FileSystemObject");
    -->
    </script>
    </body>
    </html>
32.11.FileSystemObject
32.11.1.FileSystemObject
32.11.2.FileSystemObject.BuildPath()
32.11.3.FileSystemObject.CopyFile()
32.11.4.FileSystemObject.CopyFolder()
32.11.5.FileSystemObject.CreateFolder()
32.11.6.FileSystemObject.CreateTextFile()
32.11.7.FileSystemObject.DeleteFile()
32.11.8.FileSystemObject.DeleteFolder()
32.11.9.FileSystemObject.DriveExists()
32.11.10.FileSystemObject.Drives
32.11.11.FileSystemObject.FileExists()
32.11.12.FileSystemObject.FolderExists()
32.11.13.FileSystemObject.GetAbsolutePathName()
32.11.14.FileSystemObject.GetBaseName()
32.11.15.FileSystemObject.GetDrive()
32.11.16.FileSystemObject.GetDriveName()
32.11.17.FileSystemObject.GetExtensionName()
32.11.18.FileSystemObject.GetFile()
32.11.19.FileSystemObject.GetFileName()
32.11.20.FileSystemObject.GetFolder()
32.11.21.FileSystemObject.GetParentFolderName()
32.11.22.FileSystemObject.GetSpecialFolder()
32.11.23.FileSystemObject.GetTempName()
32.11.24.FileSystemObject.MoveFile()
32.11.25.FileSystemObject.MoveFolder()
32.11.26.FileSystemObject.OpentextFile()
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.