sloppycode.net
FSO Reference
Collections
Drives
Files
Folders
Drive
AvailableSpace
DriveLetter
DriveType
FileSystem
FreeSpace
IsReady
Path
RootFolder
SerialNumber
ShareName
TotalSize
VolumeName
File
Attributes
Copy
DateCreated
DateLastAccessed
DateLastModified
Delete
Drive
Move
Name
OpenAsTextStream
ParentFolder
Path
ShortName
ShortPath
Size
Type
Folder
Attributes
Copy
CreateTextFile
DateCreated
DateLastAccessed
DateLastModified
Delete
Drive
Files
IsRootFolder
Move
Name
ParentFolder
Path
ShortName
ShortPath
Size
SubFolders
Type
FSO
BuildPath
Collections
CopyFile
CopyFolder
CreateFolder
CreateTextFile
DeleteFile
DeleteFolder
Drive
DriveExists
Drives
File
FileExists
Folder
FolderExists
GetAbsolutePathName
GetBaseName
GetDrive
GetDriveName
GetExtensionName
GetFile
GetFileName
GetFileVersion
GetFolder
GetParentFolderName
GetSpecialFolder
GetTempName
MoveFile
MoveFolder
OpenTextFile
TextStream
TextStream
AtEndOfLine
AtEndOfStream
Close
Column
Line
Read
ReadAll
ReadLine
Skip
SkipLine
Write
WriteBlankLines
WriteLine
File
The File Object allows you to access the properties of a file, or files if you have
a collection of file objects. It has 4 methods and 12 properties. It's worth noting
that a lot of the functionality of the File object can also be achieved using the
top (Main) class of the FSO, if you only want to perform an operation on a single file
that you know the name of.
For example fileObject.Delete, where you have a single file can just as easily be
achieved using fsoObject.DeleteFile, the File object is best suited for multiple files
in directories and subdirectories, where for example you may want to delete every file
in a directory that has certain file extension.
The object contains an OpenAsTextStream method, which opens the file as a text file.
This can also be done using the Main object's OpenTextFile (fsObject.OpenTextFile...).
› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search
› Sitemap
Buy on Amazon
Buy on Amazon
Buy on Amazon
Buy on Amazon